开发者

Accessing ViewController loaded using presentModalViewController

开发者 https://www.devze.com 2023-03-23 13:09 出处:网络
I have the following code: -(void) viewDidLoad{ LoginViewController *lvc = [[LoginViewController alloc] init];

I have the following code:

-(void) viewDidLoad{
    LoginViewController *lvc = [[LoginViewController alloc] init];
    [lvc setDelegate:self];
    [self presentModalViewController:lvc animated:YES];
}

Is there a way to a开发者_如何学Goccess the view that has currently been loaded without expanding lvc's scope (i.e. turn into an instance variable)...


You can access it via:

self.modalViewController
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号