I started this this blog to better expand my knowledge of Swift and hope to help others do the same. I have already known Swift but will start from the basics. This was inspired by a couple other blogs and repos, just decided to make my own, and open source
30 Projects so far..
A simple tap counter, where you tap on the button and it increments the number. Pressing reset sets the number back to zero.
Build an Interface with Labels and Buttons
Using functions with buttons
String Interpolation
Pressing a button to makes an alert popup.
Build an Interface with Labels and Buttons
Using functions with buttons
UIAlertController
Simple Tip Calculator
CocoaPods
mySliderValueChanged
UIControlEvents.EditingChanged
A simple stopwatch that can start counting, pause, and reset.
NSTimer
scheduledTimerWithTimeInterval
Timer invalidate
Pressing a button changes the custom font to another custom font.
UIFont
Custom Fonts
Creating a basic TableView
UITableViewDelegate
UITableViewDataSource
Creating a basic CollectionView
UICollectionViewDataSource
UICollectionViewDelegate
dequeueReusableCellWithReuseIdentifier
Play video that is saved locally in the app.
NSBundle.mainBundle
AVPlayer
Play video that is on Youtube.
YoutubeSourceParserKit
MediaPlayer
Gets the current date and time to the second. Pressing the update button updates the date / time.
NSDateFormatter
Gets the current date and time to the second. Pressing the update button updates the date / time.
destinationViewController
Using UISwipeGestureRecognizer we can slide down to dismiss the keyboard.
UISwipeGestureRecognizer
resignFirstResponder
Pressing a button will bring up the image picker. The user then chooses the image and it is shown in an image view.
UIImagePickerController
UINavigationControllerDelegate
UIImagePickerControllerDelegate
UIImagePickerControllerSourceType
Sliding down on a table view refreshes the list.
UIRefreshControl
Deleting and rearranging cells in a table view.
UITableView
canMoveRowAtIndexPath
moveRowAtIndexPath
Adding an item to a TableView
Append to array
reloadData
Creating and populating custom cells in TableViews
dequeueReusableCellWithIdentifier
UITableViewCell class
configureCell method
Creating and populating custom cells in CollectionView
sizeForItemAtIndexPath
UICollectionViewCell class
configureCell method
Creating and populating custom cells in CollectionView
CLLocationManager
MapKit
didUpdateLocations method
Pressing the share button brings up an ActionSheet where you have more buttons to choose from.
UIActionSheetDelegate
UIAlertController
UIAlertAction
Sometimes video intros are pretty cool!
VideoSplashViewController.swift
VideoCutter.swift
preferredStatusBarStyle
Using a scrollview to scroll down the page to see further content.
UIScrollView
Twitter like splash screen.
http://iosdevtips.co/post/88481653818/twitter-ios-app-bird-zoom-animation
Using localizable strings. When the system language is changed, the strings in the app change.
Localizable.strings
http://rshankar.com/internationalization-and-localization-of-apps-in-xcode-6-and-swift/
Creating basic animations for textfields, button, and a label. Textfields and buttons slide on and off and title labels alpha is set to 0.
animateWithDuration
Swiping right or left goes to different views. One of which is a camera.
Appending views to scroll views
Accessing the front camera
https://www.youtube.com/watch?v=994Hsi1zs6Q
Limiting characters of a textfield to a set number.
shouldChangeCharactersInRange
editedTextField
Making and API call with Alamofire then parsing the JSON object with SwiftyJSON
Alamofire
SwiftyJSOn
Needed to implement a full screen iAd in my app and thought I would post a little project here too.
Interstatial Ad
Delay of 1 second
Drag across the screen to open up a menu.
https://www.youtube.com/watch?v=8EFfPT3UeWs
SWRevealViewController