Skip to content

Commit 04c5fb0

Browse files
committed
更新demo
1 parent 1078399 commit 04c5fb0

File tree

21 files changed

+1268
-0
lines changed

21 files changed

+1268
-0
lines changed

有趣的Demo/JS_OjbC_Interaction/JS_OjbC_Interaction_Demo.xcodeproj/project.pbxproj

Lines changed: 529 additions & 0 deletions
Large diffs are not rendered by default.

有趣的Demo/JS_OjbC_Interaction/JS_OjbC_Interaction_Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0720"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "C5BD08211C1C7548002F0F36"
18+
BuildableName = "JS_OjbC_Interaction_Demo.app"
19+
BlueprintName = "JS_OjbC_Interaction_Demo"
20+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "C5BD083A1C1C7549002F0F36"
36+
BuildableName = "JS_OjbC_Interaction_DemoTests.xctest"
37+
BlueprintName = "JS_OjbC_Interaction_DemoTests"
38+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "C5BD08451C1C7549002F0F36"
46+
BuildableName = "JS_OjbC_Interaction_DemoUITests.xctest"
47+
BlueprintName = "JS_OjbC_Interaction_DemoUITests"
48+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
<MacroExpansion>
53+
<BuildableReference
54+
BuildableIdentifier = "primary"
55+
BlueprintIdentifier = "C5BD08211C1C7548002F0F36"
56+
BuildableName = "JS_OjbC_Interaction_Demo.app"
57+
BlueprintName = "JS_OjbC_Interaction_Demo"
58+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
59+
</BuildableReference>
60+
</MacroExpansion>
61+
<AdditionalOptions>
62+
</AdditionalOptions>
63+
</TestAction>
64+
<LaunchAction
65+
buildConfiguration = "Debug"
66+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
67+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
68+
launchStyle = "0"
69+
useCustomWorkingDirectory = "NO"
70+
ignoresPersistentStateOnLaunch = "NO"
71+
debugDocumentVersioning = "YES"
72+
debugServiceExtension = "internal"
73+
allowLocationSimulation = "YES">
74+
<BuildableProductRunnable
75+
runnableDebuggingMode = "0">
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "C5BD08211C1C7548002F0F36"
79+
BuildableName = "JS_OjbC_Interaction_Demo.app"
80+
BlueprintName = "JS_OjbC_Interaction_Demo"
81+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
82+
</BuildableReference>
83+
</BuildableProductRunnable>
84+
<AdditionalOptions>
85+
</AdditionalOptions>
86+
</LaunchAction>
87+
<ProfileAction
88+
buildConfiguration = "Release"
89+
shouldUseLaunchSchemeArgsEnv = "YES"
90+
savedToolIdentifier = ""
91+
useCustomWorkingDirectory = "NO"
92+
debugDocumentVersioning = "YES">
93+
<BuildableProductRunnable
94+
runnableDebuggingMode = "0">
95+
<BuildableReference
96+
BuildableIdentifier = "primary"
97+
BlueprintIdentifier = "C5BD08211C1C7548002F0F36"
98+
BuildableName = "JS_OjbC_Interaction_Demo.app"
99+
BlueprintName = "JS_OjbC_Interaction_Demo"
100+
ReferencedContainer = "container:JS_OjbC_Interaction_Demo.xcodeproj">
101+
</BuildableReference>
102+
</BuildableProductRunnable>
103+
</ProfileAction>
104+
<AnalyzeAction
105+
buildConfiguration = "Debug">
106+
</AnalyzeAction>
107+
<ArchiveAction
108+
buildConfiguration = "Release"
109+
revealArchiveInOrganizer = "YES">
110+
</ArchiveAction>
111+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>JS_OjbC_Interaction_Demo.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>C5BD08211C1C7548002F0F36</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>C5BD083A1C1C7549002F0F36</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
<key>C5BD08451C1C7549002F0F36</key>
26+
<dict>
27+
<key>primary</key>
28+
<true/>
29+
</dict>
30+
</dict>
31+
</dict>
32+
</plist>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// AppDelegate.h
3+
// JS_OjbC_Interaction_Demo
4+
//
5+
// Created by caolongyao on 15/12/12.
6+
// Copyright © 2015年 iOSLittleSquad. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
12+
13+
@property (strong, nonatomic) UIWindow *window;
14+
15+
16+
@end
17+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// AppDelegate.m
3+
// JS_OjbC_Interaction_Demo
4+
//
5+
// Created by caolongyao on 15/12/12.
6+
// Copyright © 2015年 iOSLittleSquad. All rights reserved.
7+
//
8+
9+
#import "AppDelegate.h"
10+
11+
@interface AppDelegate ()
12+
13+
@end
14+
15+
@implementation AppDelegate
16+
17+
18+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19+
// Override point for customization after application launch.
20+
return YES;
21+
}
22+
23+
- (void)applicationWillResignActive:(UIApplication *)application {
24+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26+
}
27+
28+
- (void)applicationDidEnterBackground:(UIApplication *)application {
29+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31+
}
32+
33+
- (void)applicationWillEnterForeground:(UIApplication *)application {
34+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35+
}
36+
37+
- (void)applicationDidBecomeActive:(UIApplication *)application {
38+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39+
}
40+
41+
- (void)applicationWillTerminate:(UIApplication *)application {
42+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43+
}
44+
45+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "29x29",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "40x40",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "60x60",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
32+
}
33+
],
34+
"info" : {
35+
"version" : 1,
36+
"author" : "xcode"
37+
}
38+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
5+
</dependencies>
6+
<scenes>
7+
<!--View Controller-->
8+
<scene sceneID="EHf-IW-A2E">
9+
<objects>
10+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
11+
<layoutGuides>
12+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
13+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
14+
</layoutGuides>
15+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+
<animations/>
19+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9059" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
6+
</dependencies>
7+
<scenes>
8+
<!--View Controller-->
9+
<scene sceneID="tne-QT-ifu">
10+
<objects>
11+
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
12+
<layoutGuides>
13+
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
14+
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
15+
</layoutGuides>
16+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<subviews>
20+
<webView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PMd-Cc-kff">
21+
<rect key="frame" x="0.0" y="20" width="600" height="380"/>
22+
<animations/>
23+
<color key="backgroundColor" red="0.36078431370000003" green="0.38823529410000002" blue="0.4039215686" alpha="1" colorSpace="deviceRGB"/>
24+
</webView>
25+
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="VO1-x4-FkY">
26+
<rect key="frame" x="0.0" y="0.0" width="240" height="128"/>
27+
<animations/>
28+
<color key="backgroundColor" red="1" green="0.95294117649999999" blue="0.56862745100000001" alpha="1" colorSpace="calibratedRGB"/>
29+
<fontDescription key="fontDescription" type="system" pointSize="14"/>
30+
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
31+
<dataDetectorType key="dataDetectorTypes" phoneNumber="YES" link="YES" address="YES" calendarEvent="YES"/>
32+
</textView>
33+
</subviews>
34+
<animations/>
35+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
36+
<constraints>
37+
<constraint firstItem="PMd-Cc-kff" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="6Nm-6u-Xgh"/>
38+
<constraint firstItem="VO1-x4-FkY" firstAttribute="top" secondItem="PMd-Cc-kff" secondAttribute="bottom" id="D9g-9x-DFQ"/>
39+
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="VO1-x4-FkY" secondAttribute="bottom" id="ENz-gw-rpk"/>
40+
<constraint firstItem="VO1-x4-FkY" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="NdH-6N-oiF">
41+
<variation key="heightClass=regular-widthClass=compact" constant="5"/>
42+
</constraint>
43+
<constraint firstAttribute="trailing" secondItem="VO1-x4-FkY" secondAttribute="trailing" id="UaQ-1P-8Sa">
44+
<variation key="heightClass=regular-widthClass=compact" constant="5"/>
45+
</constraint>
46+
<constraint firstAttribute="trailing" secondItem="PMd-Cc-kff" secondAttribute="trailing" id="YI6-op-FSU"/>
47+
<constraint firstItem="PMd-Cc-kff" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="pR7-fb-Ita"/>
48+
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="PMd-Cc-kff" secondAttribute="bottom" constant="200" id="sW1-4s-d5P"/>
49+
</constraints>
50+
<variation key="default">
51+
<mask key="subviews">
52+
<exclude reference="VO1-x4-FkY"/>
53+
</mask>
54+
<mask key="constraints">
55+
<exclude reference="D9g-9x-DFQ"/>
56+
<exclude reference="NdH-6N-oiF"/>
57+
<exclude reference="UaQ-1P-8Sa"/>
58+
<exclude reference="ENz-gw-rpk"/>
59+
</mask>
60+
</variation>
61+
<variation key="heightClass=regular-widthClass=compact">
62+
<mask key="subviews">
63+
<include reference="VO1-x4-FkY"/>
64+
</mask>
65+
<mask key="constraints">
66+
<include reference="D9g-9x-DFQ"/>
67+
<include reference="NdH-6N-oiF"/>
68+
<include reference="UaQ-1P-8Sa"/>
69+
<include reference="ENz-gw-rpk"/>
70+
</mask>
71+
</variation>
72+
</view>
73+
<connections>
74+
<outlet property="logLabel" destination="VO1-x4-FkY" id="rhb-Z3-7j7"/>
75+
<outlet property="webView" destination="PMd-Cc-kff" id="kmI-1j-i8i"/>
76+
</connections>
77+
</viewController>
78+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
79+
</objects>
80+
</scene>
81+
</scenes>
82+
</document>

0 commit comments

Comments
 (0)