会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
super-Main
博客园
首页
新随笔
联系
订阅
管理
2017年8月14日
解决为什么有很多朋友要显示当前viewController,却无法拿到这个view的疑问
摘要: - (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] keyWindow]; if (window.win
阅读全文
posted @ 2017-08-14 16:22 super-Main
阅读(142)
评论(0)
推荐(0)
编辑
2017年7月6日
block使用
摘要: .h文件 typedef void (^TestBlock)(); @property (nonatomic , strong) TestBlock testBlock; .m文件 _testBlock(); 对方回调的block v1.testBlock= ^() { };
阅读全文
posted @ 2017-07-06 15:44 super-Main
阅读(104)
评论(0)
推荐(0)
编辑
2017年7月5日
oc 随机数字 4位-6位-其他随机数等
摘要: 1)、arc4random() 比较精确不需要生成随即种子 使用方法 : 通过arc4random() 获取0到x-1之间的整数的代码如下: int value = arc4random() % x; 获取1到x之间的整数的代码如下: int value = (arc4random() % x) +
阅读全文
posted @ 2017-07-05 15:49 super-Main
阅读(244)
评论(0)
推荐(0)
编辑
2017年6月29日
如何监控 app delegate tabbar的点击事件,可以处理点击个人页会跳转登录
摘要: @interface AppDelegate ()<UITabBarControllerDelegate> - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIVi
阅读全文
posted @ 2017-06-29 17:26 super-Main
阅读(255)
评论(0)
推荐(0)
编辑
谈谈 oc原生和跳转h5 页面 来回切换的功能
摘要: 1.当我跳转到view的时候 <UIWebViewDelegate> #pragma mark - #pragma mark - UIWebViewDelegate - (void)webViewDidStartLoad:(UIWebView *)webView { // self.tabBarCo
阅读全文
posted @ 2017-06-29 17:21 super-Main
阅读(228)
评论(0)
推荐(0)
编辑