2016年3月27日

摘要: 导入android-support-v4.jar的方法 在导入使用了ViewPage,ActionBar,Fragment的工程后出现错误,很有可能是没有导入4.0版本的支持包。 正确导入方法为: 首先在Project->properties->Java Build Path->Libraries- 阅读全文
posted @ 2016-03-27 15:51 嘎嘣脆0 阅读(108) 评论(0) 推荐(0)

2016年3月26日

摘要: 今天在操作NSMutableArray数字增加和删除时候出现崩溃,报错[__NSArrayI addObjectsFromArray:]: unrecognized selector。 找了一个小时,发“__NSArrayI”这个提示比较重要。查了一下发现 __NSArrayI is a code- 阅读全文
posted @ 2016-03-26 12:19 嘎嘣脆0 阅读(91) 评论(0) 推荐(0)
摘要: setMasksToBounds (2012-02-24 17:49:10) 转载▼ setMasksToBounds 转载▼ 标签: 杂谈 分类: IOS学习 杂谈 在IB中,当你使用Custom类型的Button时,你可以指定按钮的背景色。但当你运行时按钮就失去了圆角特性,你看到的仅仅是一个方块 阅读全文
posted @ 2016-03-26 11:32 嘎嘣脆0 阅读(101) 评论(0) 推荐(0)
摘要: 今天在学习IAP的时候无意间看到原来 tableView: cellForRowAtIndexPath:方法中有两个获得重用cell的方法 ,一直以来都是用 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Ce 阅读全文
posted @ 2016-03-26 11:03 嘎嘣脆0 阅读(222) 评论(0) 推荐(0)
摘要: UIInterfaceOrientation over iOS6 (应用旋转屏幕) typedef NS_ENUM(NSInteger, UIInterfaceOrientation) { UIInterfaceOrientationUnknown = UIDeviceOrientationUnkn 阅读全文
posted @ 2016-03-26 10:57 嘎嘣脆0 阅读(129) 评论(0) 推荐(0)
摘要: 标签:布局 自动尺寸调整属性autoresizesSubviews //高度自动伸缩,右边间距自动伸缩 self.autoresizesSubviews = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleRightMargi 阅读全文
posted @ 2016-03-26 10:40 嘎嘣脆0 阅读(222) 评论(0) 推荐(0)

2016年3月22日

摘要: 一,Xcode编译出现Link错误,出现"duplicate symbols for architecture i386 clang"提示.问题:链接时,项目有重名文件.解决:根据错误提示,做如下检查:1.Taraget->Build Settings->Link Binary With Libra 阅读全文
posted @ 2016-03-22 18:37 嘎嘣脆0 阅读(195) 评论(0) 推荐(0)

2016年3月13日

摘要:    NSData* xmlData = [@"testdata" dataUsingEncoding:NSUTF8StringEncoding]; NSData * data; NSString *result = [[NSString alloc] initWithData:data  enco 阅读全文
posted @ 2016-03-13 21:25 嘎嘣脆0 阅读(253) 评论(0) 推荐(0)
摘要: 转载自:http://blog.sina.com.cn/s/blog_8280f5ec0101k03c.html   本文列举了四种延时执行某函数的方法及其一些区别。假如延时1秒时间执行下面的方法。 1.performSelector方法 此方式要求必须在主线程中执行,否则无效。是一种非阻塞的执行方 阅读全文
posted @ 2016-03-13 17:56 嘎嘣脆0 阅读(111) 评论(0) 推荐(0)

2016年3月10日

摘要: CGRectGetWidth CGFloat buttonWidth = CGRectGetWidth(self.bounds); 阅读全文
posted @ 2016-03-10 17:47 嘎嘣脆0 阅读(92) 评论(0) 推荐(0)

导航