Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
11/07/12 08:53 AM (13 years ago)

iOS custom information/warning box

I am wanting to implement a warning box that appears when the user lands on my videos menu screen. I have the snippet of code: \\\\ if[[BT_strings getStyleValueForScreen:self.screenData:@"itemNickname":@""]isEqualToString:@"videos"] { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Warning!" message:@"insert text here..." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } \\ but im unsure exactly where to place the code?
 
baywebnz
Aspiring developer
Profile
Posts: 92
Reg: Oct 25, 2010
location unknow...
920
like
11/07/12 04:30 PM (13 years ago)
Probably needs to go in the 'viewDidLoad' method of the .m file for the screen type you are using - eg. menu Also did you want this to show every time the user visits the screen or only the first time?
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
11/08/12 01:05 AM (13 years ago)
Thanks but I tried that and it wouldnt run :( The first time only would be ideal just a single warning about data usage
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.