IOS Selector(jump to the Other Page) 响应事件或者跳转 使用每个控件里面的action的selector 1 UIBarButtonItem *leftbutton = [[UIBarButtonItem alloc] initWithTitle:@"cancel" style:UIBarButtonSystemItemDone target:self action:@selector(goBack)]; 实现selector的跳转 定义要跳转到的页面的viewcontroller 用presentModalViewController跳转 用完记得释放资源 1 2 3 4 5 - (void)goBack{ basicinfo *p1 = [[basicinfo alloc] init]; [self presentModalViewController:p1 animated:YES]; [p1 release]; } Jun 24th, 2014 IOS Comments