我编写了一个使用目标c
登录Web服务的功能- (void) registerAck: (NSNotification *) notification {
NSLog(@"Detected callback for register");
NSString *status = [[notification userInfo] valueForKey:@"result"];
if([status rangeOfString:@"Successful"].location != NSNotFound){
//succesfully registered
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome"
message:@"Thank you for registering. Please login using the created details"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[[NSNotificationCenter defaultCenter] removeObserver:self];
NSLog(@"%@", status);
}
我想知道如何清除页面然后当用户在弹出窗口中选择确定将页面链接到另一个页面时?
清除页面很简单,我只想写一个方法,然后在提醒[show]之前调用它,但页面的更改是我被卡住的地方 - 有人能告诉我如何以编程方式重定向到登录页面吗?