2
我对iphone开发有些新鲜感,所以请耐心等待!登录后执行塞格检查
我有一个连接到我开发的REST API的登录屏幕。它来回发送json请求。基本上当你点击登录时,它会检查用户名/密码是否有效(显然)。
这里是我有什么基本的逻辑:
- (IBAction)sendLoginJson:(id)sender {
// send JSON request to server.. etc
NSURLConnection *myConnection = [NSURLConnection connectionWithRequest:request delegate:self];
[myConnection start];
}
然后去
- (void)connectionDidFinishLoading
// this is where I get the response from the server
如何切换到,比方说,“DashboardViewController”我保证以后登录正确验证?
谢谢!
Darren,谢谢你。它像一个魅力。但是,由于某些原因,当它切换到仪表板塞格时,它会变黑。有任何想法吗? – pep 2012-02-11 22:58:38
仪表板是否有视图? – Darren 2012-02-11 23:10:19
试试这个http://stackoverflow.com/questions/8945292/ios-5-black-screen-after-segue – Darren 2012-02-11 23:12:55