10 2017 档案
摘要:1、获取iOS设备的各种信息 // 这个方法后面会列出来 NSString *deviceName = [self getDeviceName]; NSLog(@"设备型号-->%@", deviceName); NSString *iPhoneName = [UIDevice currentDev
阅读全文
摘要:hybrid.jpg 前言 Web 页面中的 JS 与 iOS Native 如何交互是每个 iOS 猿必须掌握的技能。而说到 Native 与 JS 交互,就不得不提一嘴 Hybrid。 Hybrid 的翻译结果并不是很文明(擦汗,不知道为啥很多翻译软件会译为“杂种”,但我更喜欢将它翻译为“混合、
阅读全文
摘要:解决方法 - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { // 如果有大于控制器 if (self.childViewControllers.count >= 1) { v
阅读全文
摘要:iOS11 系统为UIScrollView增加一个contentInsetAdjustmentBehavior属性,默认为UIScrollViewContentInsetAdjustmentAutomatic,要想和iOS11之前显示效果一样的话,只需要写一个分类在+ (void)load方法设置一
阅读全文