I want to know how to use a condition saying
if(appHasNewlyLaunced)
{
// read a file
}
else
{
// read another file.
}
Is there any inbuilt class or property to check this. I am new to iOS so it could be a simple one , but I have no idea.
Thanks
I want to know how to use a condition saying
if(appHasNewlyLaunced)
{
// read a file
}
else
{
// read another file.
}
Is there any inbuilt class or property to check this. I am new to iOS so it could be a simple one , but I have no idea.
Thanks
i just want to know when the app. launches
There's a method in the app delegate that's called when the app launches. It's called -application:didFinishLaunchingWithOptions:. You need to implement that method in your app delegate, and you can add whatever code you want to execute when the app launches.
I am new to iOS
Take some time to learn what's expected of an iOS app before you dive in. If you invest some time up front, it'll pay for itself many times over. For example, you probably didn't know that applications are expected to provide an object to act as the application's delegate, else you would have looked at the UIApplicationDelegate protocol before asking your question.