上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
floatscale = [[UIScreenmainScreen]scale];//得到设备的分辨率[imageView setContentScaleFactor:[[UIScreen mainScreen]scale]];将设备的分辨率赋给imageView。好像是这样,当scale=1的时候... Read More
posted @ 2015-06-27 18:13 羊羊羊🐑 Views(524) Comments(0) Diggs(0) Edit
contentOffset, 在UIScrollview里面滚动条用的最多,比如网易新闻的滚动条,肯定会用到这个。我认为:它是下一个要显示的图片的左上角。设置了这个左上角后,下一次滚动时,邮戳直接到了这个点,然后配合width和height,然后就把下一张图片显示出来了。这个还有一个好处就是:这样设... Read More
posted @ 2015-06-27 18:00 羊羊羊🐑 Views(472) Comments(0) Diggs(0) Edit
char c1[] = "sdfa";//系统自动添加结束字符 \0 char c2[] = {'1','2','3'};//这样赋值的话,要自己加上结束字符 \0 printf("%s\t %s\n",c1,c2); printf("%lu\t %lu\n",strlen(c1)... Read More
posted @ 2015-06-26 08:56 羊羊羊🐑 Views(151) Comments(0) Diggs(0) Edit
signed:表示有符号位,最高位包括正数、负数和0;unsigned:表示无符号位,最高位表示 数值,不表示符号;signed int a:a 的取值范围是:-2^.....这个就想不起来要占几位了。。大学时,学了2遍编译原理,还是没有学会。。。悲了个催的。 Read More
posted @ 2015-06-26 08:24 羊羊羊🐑 Views(279) Comments(0) Diggs(0) Edit
静态全局变量(static):就是对当前.m里面的方法都能够使用的变量。每一次调用的时候,自动使用上一次调用时的结果。因为在静态分配区只分配一块内存地址,数值递加。静态局部变量(static):和全局变量同理,每次都是自动存储运行后的值,下一次运行时直接拿出来用,也是只有一个地址。在整个程序运行期间... Read More
posted @ 2015-06-26 07:38 羊羊羊🐑 Views(891) Comments(0) Diggs(0) Edit
iOS Block 块。 Read More
posted @ 2015-06-25 23:26 羊羊羊🐑 Views(169) Comments(0) Diggs(0) Edit
今天有两家公司面试。第一家公司是网梯技术有限公司Wh@ty,一家做教育的公司;第二家公司是在QQ群里闲聊时出现的58同城。第一家公司去的比较早,约好了10点,9点半就到了,等了大概十多分钟,9:45开始面试。小伙瘦瘦小小的,头发很短,看起来年纪不大。简单明了地说:让我做个自我介绍。然后我指了指简历,... Read More
posted @ 2015-06-25 21:41 羊羊羊🐑 Views(189) Comments(1) Diggs(0) Edit
需要将Podfile文件放置在根目录下,而不能放置在项目的里面。更改路径即可 Read More
posted @ 2015-06-19 07:27 羊羊羊🐑 Views(1693) Comments(0) Diggs(0) Edit
xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to ... Read More
posted @ 2015-06-03 11:54 羊羊羊🐑 Views(276) Comments(1) Diggs(0) Edit
NSDictionary * dic = [NSDictionary dictionaryWithObjectsAndKeys:@"object1",@"key1",@"object2",@"key2",@"object3",@"key3", nil];1.获得所有的keys:NSLog(@"val... Read More
posted @ 2015-06-02 09:38 羊羊羊🐑 Views(103) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页