-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathios-swift-button.html
More file actions
102 lines (85 loc) · 4.46 KB
/
ios-swift-button.html
File metadata and controls
102 lines (85 loc) · 4.46 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>TopDownU Tutorials</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/2-col-portfolio.css" rel="stylesheet">
<link href="tutorials.css" rel="stylesheet">
</head>
<body>
<div class="header">
<h2 class="tutorialTitle">Setting up a button</h2>
<p class="tutorialDescription">in 4 simple steps - by Vidy Thatte</p>
<p class="moreTutorials"><a class="moreTutorialsLink" href="http://topdownu.com/tutorials">MORE TUTORIALS</a></p>
</div>
<div class="row">
<div class="row-white">
<div class="padding-box">
<h2 class="stepTitle">Prerequisites</h2>
<p class="stepParagraph"><a href="https://topdownu.github.io/tutorials/ios-swift-new-project.html">Create a new Xcode Project</a></p>
</div>
</div>
</div>
<div class="row">
<div class="row-gray">
<div class="padding-box">
<h2 class="stepTitle">Drag a UIButton</h2>
<p class="stepParagraph">Drag a <a class="codeTerm">UIButton</a> from the <a class="codeTerm">Object Library</a> into your main <a class="codeTerm">ViewController</a> as shown below.</p>
<div style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/3osBLrtYonv7qm7R04" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>
</div>
<div class="padding-box">
<h6 class="stepNumber">Step 1 of 4</h6>
</div>
</div>
</div>
<div class="row">
<div class="row-white">
<div class="padding-box">
<h2 class="stepTitle">Create an IBOutlet</h2>
<p class="stepParagraph">Select the <a class="codeTerm">UIButton</a>, press and hold ⌘ (command) and drag the Button onto your <a class="codeTerm">ViewController</a> class. Make sure you select <a class="codeTerm">IBOutlet</a>.</p>
<div style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/3osBL567dViEOZnhbW" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>
</div>
<div class="padding-box">
<h6 class="stepNumber">Step 2 of 4</h6>
</div>
</div>
</div>
<div class="row">
<div class="row-gray">
<div class="padding-box">
<h2 class="stepTitle">Create an IBAction</h2>
<p class="stepParagraph">Select the <a class="codeTerm">UIButton</a>, press and hold ⌘ (command) and drag the Button onto your <a class="codeTerm">ViewController</a> class. Make sure you select <a class="codeTerm">IBAction</a>.</p>
<div style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/xUOxeQu0qaIdEsK6T6" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>
</div>
<div class="padding-box">
<h6 class="stepNumber">Step 3 of 4</h6>
</div>
</div>
</div>
<div class="row">
<div class="row-white">
<div class="padding-box">
<h2 class="stepTitle">Run and Test</h2>
<p class="stepParagraph">Hit play and your app should print <a class="codeTermRed">"hello!"</a> as many times you press the button.</p>
<div style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/l2Rnr7NTPSh1ZN8yY" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div>
</div>
<div class="padding-box">
<h6 class="stepNumber">Step 4 of 4</h6>
</div>
</div>
</div>
<!-- Footer -->
<footer class="py-5 bg-light">
</footer>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>