-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppleIOSHelper
79 lines (60 loc) · 2.26 KB
/
AppleIOSHelper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
JAVA:
System.out.println(Arrays.toString(array));
TIMER OPERATOR
timer = NSTimer.scheduledTimerwithTimeInterval(interval, target: self, selector: Selector(“updateTimerFunction”), userInfo: nil, repeats: True
-Thoughts about timer class, userInfo is meant for timing users.
CALL OPERATOR
func funcName(varName: Datatype, varName: Datatype) -> returnType{}
FOR OPERATOR
for var i = 1; i = 10; i+=1
for var in arr
for(index, x) in enumerate(arr){}
RANDOM NUMBER OPERATOR
var randomNumber = arc4random_uniform(range = 1 less than input)
IF OPERATOR
if var (operator) var2{}else if{}else{}
ARRAY OPERATOR
array = [1,2,3,”hello”]
-Array has many methods for appending and deleting index’s.
DICTIONARY/HASH OPERATOR
dictionary = [“key”: “value”, “key”:”value”]
-Dictionary is a bit harder to work with, but easiest way to delete a value
-Make the value = nil
“stringstringstring \(object)” + “stringstringstring”
SWIFT LEARNING
<<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><
4 button on the bottom, 2nd button is for constraint, to fix screen options.
<<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><<<<<>>>>>><
FRONT END EDITING
Tools:
Xcode 6
IOS Simulator
Instruments
Language:
Swift
Design Patterns - Protocols and delegations
Supporting Frameworks
Design:
App Flow
Correct UI
Apple HIG
Rules of Programming:
Default Behavior
Customizing Behavior
Signing etc.
Datepicking - Parse it.
Reacting to PickerController:
numberofcomponentsinpickerview(pickerview: uipickerview) int
return 1 number of component
pickerview(numberoforws in component)
return number of choses
pickerview(view arrayofChoses)
connect picker view by connecting
datasourse -----> viewcontroller
delegate
Reacting to PickerController:
pickerView, didSelect row, int
switch Row{
case 0,3,4,5,8
case etc.etc
}