Application's First Launch XCode
Tech-Today

Application's First Launch XCode


Open AppDelegate.swift and modify this line:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
return true
}
to
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {

if (NSUserDefaults.standardUserDefaults().boolForKey("HasLaunchedOnce")){
//app already launched
println("app already launched")
}else{
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "HasLaunchedOnce")
NSUserDefaults.standardUserDefaults().synchronize()
//This is the first launch ever

println("this is the first launch ever")
}

return true
}




-
Send Email using MFMailComposer (Template)1.) Import MessageUI      import MessageUI 2.) Show Email func showMail() { let mailComposeViewController = configuredMailComposeViewController() if MFMailComposeViewController.canSendMail()...

- How To Implement Local Notification In Swift
The following steps will guide us on how to develop an application in Swift that implements Local Notification. Requirements are:MacXcode6 - BetaXiOS8StepsOpen xcode.Create a Single View Application, let's name it LocalNotification.Register for user...

- Mobile Development
iPhone / XCode DevelopmentCreate an iphone application using xcode that dynamically creates sqlite tablesMy Todo List iphone application development using xcodeiPhone Development Making the Slider control workHow TosCreate an image slide show in iphone...

- How To Catch Closing Event Of A Console Application In C#
On application closing we certainly always need to perform a clean up. But on the case of a c# console application there is no clear way to do it. And this is what I came up, to import a function from kernel32.dll, which is SetConsoleCtrlHandler. I'll...

- How To Make A Static Splash Screen In Iphone Using Xcode
By default an xcode project created for iPhone looks for Default.jpg image in the resources. So all you need to do is: 1.) Make sure that you have a "Default.jpg" image in your Resources project folder 2.) In the class file that extends UIApplicationDelegate,...



Tech-Today








.