Giter VIP home page Giter VIP logo

swift-2.0-learning-app's Introduction

Swift Tutorial Series

http://jamesonquave.com/blog/tutorials/

  1. Hello World
  2. Making a web API request and parsing the JSON
  3. Some best practices using Protocols and Delegates
  4. Adding an interactive Table View
  5. Async image loading and caching
  6. Interaction with multiple views
  7. Animations, Audio, and Custom Table View Cells

Core Data in Swift Tutorial

  1. Core Data in Swift Tutorial (Part 1)
  2. Core Data in Swift Tutorial (Part 2)
  3. Core Data in Swift Tutorial (Part 3)
  4. Core Data in Swift Tutorial (Part 4) – Migrations

Best Practices

Swift Reference page

UIScrollView Tutorial: Getting Started

http://www.raywenderlich.com/76436/use-uiscrollview-scroll-zoom-content-swift

iOS Login and Signup Screen tutorial : Swift + XCode 6 + iOS 8 + JSON

https://dipinkrishna.com/blog/2014/07/login-signup-screen-tutorial-xcode-6-swift-ios-8-json/

UITableView Tutorial: Adding Search

http://www.raywenderlich.com/76519/add-table-view-search-swift

Creating a Sidebar Menu Using SWRevealViewController in Swift

http://www.appcoda.com/sidebar-menu-swift/

Collection View

http://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1

Constraint

https://youtu.be/IwSTXY0awng

iAd

http://www.learnswiftonline.com/reference-guides/adding-iad-swift-app/ http://codewithchris.com/iad-tutorial/

Google AdMob

https://developers.google.com/mobile-ads-sdk/docs/dfp/ios/quick-start

Installing CocoaPods on Mac OS X El Capitan

sudo gem install -n /usr/local/bin cocoapods

CocoaPods/CocoaPods#3736 (comment)

Configuring Workspace to use CocoaPods for test

Open Podfile and add the following line: (replace MainTarget and MainTargetTests with your targets)

link_with 'MainTarget', 'MainTargetTests'

Then run pod install.

Networking

http://www.raywenderlich.com/85080/beginning-alamofire-tutorial https://github.com/Alamofire/Alamofire

How to build workspace/project into .ipa from command line

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

Notification

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

App Configuration File

Create .plist configuration file

Create new file ->iOS Resource -> Property List

Read Config

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
}

Create multiple app with same source codebase

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.

  1. Start by opening your project in xCode 6 and clicking on your project header to display the existing targets.
  2. Duplicate an existing target (preferably the original) and rename it (e.g "app_name production")
  3. Navigate to this target, then build settings > packaging> product name. You will see "app_name copy". Change this to
${TARGET_NAME}
  1. 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)
  2. Copy the config file, info.plist file and any other files you wish to be unique to this target into the folder
  3. Drag this folder into your project in xCode to add it to the project bundle.
  4. Click on the new info.plist file and make sure that no target membership is ticked in the right sidebar.
  5. Delete the generated info.plist file that appeared (usually the last file in your project navigator)
  6. Go into your target > general and specify an info.plist. This should be the one in your new target folder.
  7. Click on your target in the top bar and from the dropdown select "manage scheme".
  8. Remove the copy scheme by highlighting and selecting "-" at the bottom of the panel
  9. 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

swift-2.0-learning-app's People

Contributors

wchen02 avatar luonan0404 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.