Im having two textfields ,
- profile name
- profile quote
In my application home screen,I want to show an alert view “Create a Profile” on first launch.And if in next launch profile is exist it should not show the alert view?Can any one help me to code?
Okay, I needed to do this same thing. I created a singleton class which I used to store NSUserDefaults.
I called it my defaults class.
Defaults.h
Defaults.m
–Now just import the defaults class into whichever class you want to use it in.
//If you want to know which button they press, you need to adopt the UIAlertViewDelegate