A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© iOSyinlixian 中级黑马   /  2016-3-26 23:29  /  755 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

我在AppDelegate中加入一个NSTimer
定时触发方法执行下面的代码
UIButton *adBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[adBtn addTarget:self action:@selector(push) forControlEvents:UIControlEventTouchDown];
[[[UIApplication sharedApplication] keyWindow] addSubview:adBtn];
想单击adBtn时打开个新页面,然后在页面上单击某个按钮也可以返回到当前显示的页面
但我不知道在- (void)push;中写[view presentModalViewController:adWebView animated:YES];时
view应该指定哪个页面

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马