Let's create a simple single view application Create a new Xcode project Choose a template for your new project -> select "Single View Application" -> Next Fill your product name and choose Language : Swift Build and run your new project, the app will show a blank screen. Let's add AdMob SDK into your application Note: CocoaPods is the dependency manager for Swift and Objective-C We will install AdMob SDK by using CocoaPods. There are 2 steps for the installation. 1.Create the Podfile (in the same directory as the example.xcodeproj) File name : Podfile File contents : source 'https://github.com/CocoaPods/Specs.git' platform :ios, '7.0' pod 'Google-Mobile-Ads-SDK', '~> 7.0' 2.Install AdMob SDK by using Podfile Close all projects Open terminal Go to directory which has Podfile Run pod install Let's make a simple banner in your application 1.Open up file "example.x...
Swift 3 brought a tsunami of changes to the language as well as our codebase, some of you reading this may even still be battling with the migration too. But even with all these changes, we’re still left with some APIs within Foundation that are stringly typed , which is totally fine… Until it’s not. It’s kind of a love/hate relationship in that we love the flexability that strings within APIs afford us, but we hate that we have to use them because of the inherit consequences they bring if we’re not careful, they’re pretty much the programming equivalent of running with scissors. We’re given stringly typed APIs because the Foundation framework engineering gods could not predetermine exactly how we intend to use them. So in all their wisdom, power and knowledge, they decided to use strings in some of the APIs because of the unlimited possibilities it creates for us as developers. It’s either that or some type of dark arcane magic. UserDefaults Our topic for today is going...
Realm for Cocoa Tutorials: Ray Wenderlich – Introduction to Realm Getting Started with Realm Database for iOS NSScreencast Episode #132 — Realm (Video) How iComics Switched from Core Data to Realm in One Evening (Video) Building a To-Do App with Realm Realm, A New Database To iOS Part 1 (article in Spanish) Podcasts: Ray Wenderlich Podcast — Realm with JP Simard S02 E03 CocoaRadio Episode 14 — Alexander Stigsen on Realm Editorial & Review: The Next Web — Realm is a Refreshing, Open-Source Mobile Database Product for iOS developers Inessential by Brent Simmons — New Database 5 Reasons Why You Should Choose Realm Over CoreData/SQLite A Lightweight Faster Than SQLite Database With Code Based Queries, Relationships And More How to Manage the Persistence in iOS applications with Realm (article in Italian) Introduction to Realm (article in Chinese) Art & Logic — Realm, A New Mobile Database InfoQ — Realm: Low-Footprint, Thread-Safe Database For...
Comments
Post a Comment