Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 96 additions & 15 deletions yalu102/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="VLO-24-CKE">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<!--FAQ-->
<scene sceneID="FxN-8F-X37">
<objects>
<viewController title="FAQ" id="54l-Fd-VES" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="XEo-Hw-QJO"/>
<viewControllerLayoutGuide type="bottom" id="1uc-aR-Uxm"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="6Gs-Pz-NGX">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="oZr-Wh-HfK" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1129" y="185"/>
</scene>
<!--Yalu-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
Expand All @@ -22,43 +39,107 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dw0-9I-nv5">
<rect key="frame" x="165" y="305" width="44" height="58"/>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dw0-9I-nv5">
<rect key="frame" x="165" y="310" width="44" height="58"/>
<fontDescription key="fontDescription" type="system" pointSize="38"/>
<state key="normal" title="go"/>
<connections>
<action selector="yolo:" destination="BYZ-38-t0r" eventType="touchUpInside" id="OEX-ZS-X4Q"/>
<action selector="yolo:" destination="BYZ-38-t0r" eventType="touchUpInside" id="mLs-cc-qFc"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="yalu by qwertyoruiopz &amp; marcograssi" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gOx-xh-mld">
<rect key="frame" x="46" y="30" width="283" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="for all iOS 10 up to 10.2 pre-i7" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SBH-un-0mh">
<rect key="frame" x="74.5" y="616" width="226" height="21"/>
<rect key="frame" x="75" y="572" width="226" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="gOx-xh-mld" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="topMargin" constant="30" id="Lak-A4-fwI"/>
<constraint firstItem="dw0-9I-nv5" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="VK2-I1-MuP"/>
<constraint firstItem="dw0-9I-nv5" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="Vix-Ed-EfU"/>
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="SBH-un-0mh" secondAttribute="bottom" constant="30" id="WX7-VB-beg"/>
<constraint firstItem="gOx-xh-mld" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="go3-GK-gg8"/>
<constraint firstItem="SBH-un-0mh" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="llZ-Oo-VUY"/>
</constraints>
</view>
<toolbarItems/>
<navigationItem key="navigationItem" title="Yalu" id="6jW-x2-FJx">
<barButtonItem key="leftBarButtonItem" style="plain" id="lBF-Hx-CTk">
<button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" id="9cX-lx-m3X">
<rect key="frame" x="16" y="11" width="22" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal">
<color key="titleColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<segue destination="4Pg-eg-7lD" kind="show" id="v9a-Mq-ngj"/>
</connections>
</button>
</barButtonItem>
<barButtonItem key="rightBarButtonItem" title="FAQ" id="aRL-fO-xYF">
<connections>
<segue destination="54l-Fd-VES" kind="show" id="qMu-18-TPT"/>
</connections>
</barButtonItem>
</navigationItem>
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="dope" destination="dw0-9I-nv5" id="h3W-Lb-cpp"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-42.399999999999999" y="-551.87406296851577"/>
</scene>
<!--About-->
<scene sceneID="4OR-9y-Bq6">
<objects>
<viewController id="4Pg-eg-7lD" customClass="AboutController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="5z6-Y7-SO7"/>
<viewControllerLayoutGuide type="bottom" id="d7W-ma-5gC"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="2B3-jd-4uy">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Pek-7s-6lR">
<rect key="frame" x="0.0" y="72" width="87" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="GitHub"/>
<connections>
<action selector="github:" destination="4Pg-eg-7lD" eventType="touchUpInside" id="dEM-hW-RCF"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<navigationItem key="navigationItem" title="About" id="G8x-u1-JDY"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<outlet property="github" destination="Pek-7s-6lR" id="b7X-r7-i0a"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Q42-jy-hwc" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="6" y="-1268"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="ZcR-jb-sMc">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="VLO-24-CKE" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="8sC-ir-93M">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="U08-86-IPI"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="RnF-Q7-MtE" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="152.80000000000001" y="154.27286356821591"/>
</scene>
</scenes>
Expand Down
7 changes: 7 additions & 0 deletions yalu102/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@

@end

@interface AboutController : UIViewController
{
IBOutlet UIButton* github;
}
- (IBAction)github:(id)sender;

@end
21 changes: 21 additions & 0 deletions yalu102/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@
mach_msg_ool_ports_descriptor_t desc[256];
char pad[4096];
} sprz;
@interface AboutController ()

@end

@implementation AboutController

- (void)viewDidLoad {

}

- (IBAction)github:(UIButton*)sender
{
NSURL *url = [NSURL URLWithString:@"https://github.com/kpwn/yalu102"];
UIApplication *application = [UIApplication sharedApplication];
[application openURL:url options:@{} completionHandler:nil];
}
@end

@interface ViewController ()

Expand All @@ -45,6 +62,7 @@ - (void)viewDidLoad {
// Do any additional setup after loading the view, typically from a nib.
}


typedef natural_t not_natural_t;

struct not_essers_ipc_object {
Expand Down Expand Up @@ -117,6 +135,9 @@ - (void)viewDidLoad {
#define IKOT_CLOCK 25

char dt[128];



- (IBAction)yolo:(UIButton*)sender
{
/*
Expand Down