10 2015 档案

摘要:UITableViewCell 的Separator 间隔线,在iOS7之前它是满屏的,也就是等于width,而在iOS7开始之后,缩进了大约15像素,而在iOS7的时候增加了一个属性:@property (nonatomic) UIEdgeInsets ... 阅读全文
posted @ 2015-10-30 15:41 沙影无痕 阅读(329) 评论(0) 推荐(0)
摘要:访问栈和堆对象成员 你已经了解到,C++中既可以在栈上也可以在堆上创建对象。然而,这两种方法还有一点微妙但是很重要的区别,即访问成员变量和成员函数的方式稍有不同。使用栈对象时,你需要点运算符(.);使用堆对象时,你需要使用箭头操作符(->)。如下:Person stackPerson... 阅读全文
posted @ 2015-10-28 14:08 沙影无痕 阅读(333) 评论(0) 推荐(0)
摘要:在XCode7中 pin消失了,怎么办? 通过搜索得到http://stackoverflow.com/questions/28766210/autolayout-add-constraint-to-superview-and-not-top-layout-guide 在约束输入框右... 阅读全文
posted @ 2015-10-28 11:34 沙影无痕 阅读(132) 评论(0) 推荐(0)
摘要:- (void)drawRect:(CGRect)rect { // Drawing code // 绘制坐标轴 [self drawAxic]; // 绘制曲线 [self drawCurve];}- (void) drawCurve { CGC... 阅读全文
posted @ 2015-10-27 08:53 沙影无痕 阅读(251) 评论(0) 推荐(0)
摘要:生成方法如下:+(NSInteger)getRandomNumber:(NSInteger)from to:(NSInteger)to{ //eg:[1,10) 包含 1,不包含10; return (NSInteger)(from + (arc4random() % (... 阅读全文
posted @ 2015-10-22 10:26 沙影无痕 阅读(296) 评论(0) 推荐(0)
摘要:集合(NSSet)和数组(NSArray)有相似之处,都是存储不同的对象的地址; 不过NSArray,NSDictionary是有序的集合,NSSet是无序的集合。(有序存储:在内存中的存储位置连续) 集合是一种哈希表,运用散列算法,查找集合中的元素比数组速度更快,但是它没有顺序。N... 阅读全文
posted @ 2015-10-15 09:13 沙影无痕 阅读(659) 评论(0) 推荐(0)
摘要:下载下来 Genymotion eclipse插件 并复制到eclipse插件文件夹,点击eclipse 上的 Genymotion 模拟器图标,eclipse打印错误,如下:Loading Genymotion libraryGenymotion directory: C:... 阅读全文
posted @ 2015-10-13 22:22 沙影无痕 阅读(219) 评论(0) 推荐(0)