2017年8月14日
摘要: - (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日
摘要: .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日
摘要: 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日
摘要: @interface AppDelegate ()<UITabBarControllerDelegate> - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIVi 阅读全文
posted @ 2017-06-29 17:26 super-Main 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑