http://jamesonquave.com/blog/tutorials/
- Hello World
- Making a web API request and parsing the JSON
- Some best practices using Protocols and Delegates
- Adding an interactive Table View
- Async image loading and caching
- Interaction with multiple views
- Animations, Audio, and Custom Table View Cells
- Core Data in Swift Tutorial (Part 1)
- Core Data in Swift Tutorial (Part 2)
- Core Data in Swift Tutorial (Part 3)
- Core Data in Swift Tutorial (Part 4) – Migrations
http://www.raywenderlich.com/76436/use-uiscrollview-scroll-zoom-content-swift
https://dipinkrishna.com/blog/2014/07/login-signup-screen-tutorial-xcode-6-swift-ios-8-json/
http://www.raywenderlich.com/76519/add-table-view-search-swift
http://www.appcoda.com/sidebar-menu-swift/
http://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1
http://www.learnswiftonline.com/reference-guides/adding-iad-swift-app/ http://codewithchris.com/iad-tutorial/
https://developers.google.com/mobile-ads-sdk/docs/dfp/ios/quick-start
sudo gem install -n /usr/local/bin cocoapods
CocoaPods/CocoaPods#3736 (comment)
Open Podfile and add the following line: (replace MainTarget and MainTargetTests with your targets)
link_with 'MainTarget', 'MainTargetTests'
Then run pod install.
http://www.raywenderlich.com/85080/beginning-alamofire-tutorial https://github.com/Alamofire/Alamofire
cd ~/Desktop/MyiOSApp/
# list out information about the workspace
xcodebuild -list [-project name.xcodeproj | -workspace name.xcworkspace]
# this command will build a .app file
xcodebuild -workspace MyiOSApp.xcworkspace -scheme MyiOSApp -configuration Debug -sdk iphoneos
# package that .app file into a .ipa
/usr/bin/xcrun -sdk iphoneos PackageApplication -v"${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o"${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${CODE_SIGNING_IDENTITY}" --embed "${PROVISONING_PROFILE}”
# Example: code sign and provisioning profile is ommited below because xcode picks them up from the workspace
xcrun -sdk iphoneos PackageApplication -v "~/Library/Developer/Xcode/DerivedData/MyiOSApp-aybxjqitpyptdsgiapjtalbiajvd/Build/Products/Debug-iphoneos/MyiOSApp.app" -o ~/Desktop/MyiOSApp.ipa
http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
Create new file ->iOS Resource -> Property List
var myDict: NSDictionary?
if let path = NSBundle.mainBundle().pathForResource("AppConfig", ofType: "plist") {
myDict = NSDictionary(contentsOfFile: path)
}
if let dict = myDict {
usernameTextField.placeholder = dict["Placeholder"] as? String
}
If you find yourself in the position where having multiple targets in your iOS project would be useful: for instance you wish to make a production, staging and demo target with separate endpoints, then this guide should prove useful.
- Start by opening your project in xCode 6 and clicking on your project header to display the existing targets.
- Duplicate an existing target (preferably the original) and rename it (e.g "app_name production")
- Navigate to this target, then build settings > packaging> product name. You will see "app_name copy". Change this to
${TARGET_NAME}
- Right click on any folder in your project and go to Finder. make a new folder inside the project structure with a similar name to your target (e.g production)
- Copy the config file, info.plist file and any other files you wish to be unique to this target into the folder
- Drag this folder into your project in xCode to add it to the project bundle.
- Click on the new info.plist file and make sure that no target membership is ticked in the right sidebar.
- Delete the generated info.plist file that appeared (usually the last file in your project navigator)
- Go into your target > general and specify an info.plist. This should be the one in your new target folder.
- Click on your target in the top bar and from the dropdown select "manage scheme".
- Remove the copy scheme by highlighting and selecting "-" at the bottom of the panel
- Click on the "autocreate scheme" button You should now have a separate target with unique files that will be used when this target is selected. Feel free to modify things like endpoints, authentication details, etc...
Ref: https://pugpig.zendesk.com/hc/en-us/articles/204412465-Adding-new-targets-to-xCode-6-projects