随笔分类 -  OC

上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要:iOS开发基础知识--碎片42 iOS开发基础知识--碎片42 1:报thread 1:exc_bad_access(code=1,address=0x70********) 闪退 这种错误通常是内存管理的问题,一般是访问了已经释放的对象导致的,可以开启僵尸对象(Zombie Objects)来定位 阅读全文
posted @ 2016-08-26 14:04 李洪强 阅读(275) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片41 1:UIWebView加载本地的HTML NSString *path = [[NSBundle mainBundle] bundlePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; NSString * ht 阅读全文
posted @ 2016-08-26 14:03 李洪强 阅读(496) 评论(0) 推荐(0)
摘要:更新CocoaPods碰到的问题及知识点 1:解决CocoaPods安装时报的问题,http://ruby.taobao.org/latest_specs.4.8.gz 报404 解决 bad response Not Found 404 (http://ruby.taobao.org/latest 阅读全文
posted @ 2016-08-26 13:58 李洪强 阅读(222) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片40 iOS开发基础知识--碎片40 1:Masonry快速查看报错小技巧 self.statusLabel = [UILabel new]; [self.contentView addSubview:self.statusLabel]; MASAttachKeys(sel 阅读全文
posted @ 2016-08-25 09:18 李洪强 阅读(254) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片39 iOS开发基础知识--碎片39 1:UIWindow知识点 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOpt 阅读全文
posted @ 2016-08-25 09:16 李洪强 阅读(232) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片38 iOS开发基础知识--碎片38 iOS开发基础知识--碎片38 1:FCUUID获取设备标识的运用 a:作者 githun地址 https://github.com/fabiocaccamo/FCUUID 因为里面还用到作者的另外一个类UICKeyChainStore 阅读全文
posted @ 2016-08-25 09:15 李洪强 阅读(304) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片37 iOS开发基础知识--碎片37 iOS开发基础知识--碎片37 1:iOS 使用NJKWebViewProgress做webview进度条 引入头文件: #import "NJKWebViewProgressView.h" #import "NJKWebViewPro 阅读全文
posted @ 2016-08-25 09:12 李洪强 阅读(255) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片36 iOS开发基础知识--碎片36 iOS开发基础知识--碎片36 iOS开发基础知识--碎片36 1:tabBarController跳转到另一个一级页面 当我们用tabBarController时,若已经到其中一个TabBar的子页,又要跳转到某一个一级的页面时,可以 阅读全文
posted @ 2016-08-25 09:10 李洪强 阅读(221) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片35 1:iOS视图控制对象生命周期 init-初始化程序 viewDidLoad-加载视图 viewWillAppear-UIViewController对象的视图即将加入窗口时调用; viewDidApper-UIViewController对象的视图已经加入到窗口时调 阅读全文
posted @ 2016-08-24 11:27 李洪强 阅读(249) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片34 1:第三方插件SKSTableView在IOS7.1.1出现闪退的问题 解决办法,修改其内部源代码: (NSInteger)subRow { id indexpath = [NSIndexPath class]; id subRowObj = objc_getAsso 阅读全文
posted @ 2016-08-24 11:25 李洪强 阅读(316) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片33 1:AFNetworking状态栏网络请求效果 直接在AppDelegate里面didFinishLaunchingWithOptions进行设置 [[AFNetworkActivityIndicatorManager sharedManager] setEnable 阅读全文
posted @ 2016-08-24 11:24 李洪强 阅读(204) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片32 1:动画属性UIViewAnimationOptions说明 a:常规动画属性设置(可以同时选择多个进行设置) UIViewAnimationOptionLayoutSubviews:动画过程中保证子视图跟随运动。 UIViewAnimationOptionAllow 阅读全文
posted @ 2016-08-24 11:23 李洪强 阅读(264) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片31 1:UITableViewCell drawInRect 在iOS7中失败 解决办法,把Cell里的布局移到新建的View里面,在View里面实现DrawInRect,然后在Cell里面加载View,代码如下: @implementation CustomTableV 阅读全文
posted @ 2016-08-24 11:21 李洪强 阅读(197) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片30 1:ios 相册操作 ALAssetsLibrary 知识点 a ALAssetsLibrary 实例为我们提供了获取相册(照片app)中的图片和视频的功能。在ios8 photos framework代替了ALAssetsLibrary。 在使用ALAssetsLi 阅读全文
posted @ 2016-08-23 09:48 李洪强 阅读(351) 评论(0) 推荐(0)
摘要:iOS运用fabric记录crash日志过程 先前运用友盟记录app闪退,发现有些闪退的记录无法明确定位到详细的位置,决定运用fabric进行闪退的记录;网上也有这方面的记录,有些细节的内容不明确,把今天碰到的坑整理记发不一下; 访问官网地址(进行注册账号): https://fabric.io 下 阅读全文
posted @ 2016-08-23 09:46 李洪强 阅读(987) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片29 1:心跳效果,并可去除心跳 - (void)initScaleLayer { self.view.backgroundColor=[UIColor blueColor]; UIButton *myTelButtom=[[UIButton alloc]initWithF 阅读全文
posted @ 2016-08-23 09:44 李洪强 阅读(216) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片28 1:通用的weakify和strongify /** * 强弱引用转换,用于解决代码块(block)与强引用self之间的循环引用问题 * 调用方式: `@weakify_self`实现弱引用转换,`@strongify_self`实现强引用转换 * * 示例: * 阅读全文
posted @ 2016-08-23 09:40 李洪强 阅读(331) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片27 1:iOS中的round/ceil/floorf extern float ceilf(float); extern double ceil(double); extern long double ceill(long double); extern float fl 阅读全文
posted @ 2016-08-23 09:37 李洪强 阅读(205) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片26 1:UICollectionView如果在数据不够一屏时上下滚动 当数据不多,collectionView.contentSize小于collectionView.frame.size的时候,UICollectionView是不会滚动的,可以增加下面代码就可以: se 阅读全文
posted @ 2016-08-23 09:35 李洪强 阅读(216) 评论(0) 推荐(0)
摘要:iOS开发基础知识--碎片25 1:使用@protocol实现delegate和datasource模式 #import <UIKit/UIKit.h> @protocol MyViewDataSource,MyViewDelegate; @interface myView : UIView<UIA 阅读全文
posted @ 2016-08-22 20:09 李洪强 阅读(210) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 11 下一页