60 likes | 116 Views
How to use IF. If(Conditon){ statements }. Some important codes. if ([text1.text isEqualToString:@"abc"]&&[text2.text isEqualToString:@"123"]) { *first=[[firstViewController alloc]initWithNibName:@"firstViewController" bundle:nil]; [self.view addSubview: first.view]; }.
E N D
How to use IF If(Conditon){ statements }
Some important codes if ([text1.text isEqualToString:@"abc"]&&[text2.text isEqualToString:@"123"]) { *first=[[firstViewController alloc]initWithNibName:@"firstViewController" bundle:nil]; [self.view addSubview: first.view]; }
Some important codes else{ *second=[[secondViewController alloc]initWithNibName:@"secondViewController" bundle:nil]; [self.view addSubview:second.view]; }
How to use UIAlterView 1 What’s the AlterView? 2 Syntax format: UIAlterView *object name=[[UIAlterView alloc]initWithTitle:@”NSString” message:@”NSString” delegate:nil cancelBttonTitle:@”NSString” otherButtonTitles:nil];
How to use UIAlterView 3 how to show the AlterView [object name show];