I teach you how to show a UIAlertView using a custom method with parameters.
-(void)createUIAlertViewWithTitle:(NSString *)title andMainText:(NSString *)mainText withCancelButton:(NSString *)cancelButton andOtherButtons:(NSString *)otherButton;
-(void) createUIAlertViewWithTitle:(NSString *)title andMainText:(NSString *)mainText withCancelButton:(NSString *)cancelButton andOtherButtons:(NSString *)otherButton
{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:title
message:mainText
delegate:self
cancelButtonTitle:cancelButton
otherButtonTitles:otherButton, nil];
[alert show];
[alert release];
}
[self createUIAlertViewWithTitle:@"Title" andMainText:@"Main Text" withCancelButton:@"Cancel" andOtherButtons:@"Other"];
NSInvocation Tutorial: • iPhone Programming: NSInvocation - Storing...
Twitter: / failcakeapps
Apple Developer Center: http://developer.apple.com/devcenter/...
Website: http://failcake.webs.com/
Channel: / milmersxcode
На этой странице сайта вы можете посмотреть видео онлайн iPhone Programming: Custom Methods with Parameters длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MilmersXcode 27 Ноябрь 2011, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,554 раз и оно понравилось 14 зрителям. Приятного просмотра!