摘要: //1.下面这个例子是计算数组中所有元素的和 //数组与指针的关系,整型是4个字节,a[] == *a, a[i] = *(a+i) #include <stdio.h> #define SIZE 10 int sum (int a[],int n); int main(){ int ar [SIZ 阅读全文
posted @ 2016-03-09 09:50 TheYouth 阅读(540) 评论(0) 推荐(0) 编辑
摘要: NSError *err = nil; NSError __strong **error = &err; //因为在oc中,通过* *err 创建的指针是用__strong修改的,所以要一致,NSError __strong(需要在前面加上) **error NSError __autoreleasing *errO = nil; NSError... 阅读全文
posted @ 2016-02-22 10:16 TheYouth 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 1.设置滚动相册 1.1将存放图片数组传过来,及当前图片的索引 1.2在控制器中创建ScrollView,设置它的contentSize,contentOffset. 1.3通过传过来的图片数组创建UIImageView并将每个UIImageView添加到ScrollView,ScrollView的 阅读全文
posted @ 2016-02-20 16:44 TheYouth 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 首先这里介绍一个软件一个插件,它们的主要功能是方便开发者看UI(如尺寸,颜色,大小等),两个配合使用 一. Sketch软件 1.Sketch 看ui图,还可以切图 2.Sketch 如何切图: 破解方式 第一步:拖拽Sketch.app到 应用程序(Applications) 文件夹; 第二部:执 阅读全文
posted @ 2016-02-04 19:51 TheYouth 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.两种方式创建系统TabBarController 阅读全文
posted @ 2016-02-04 19:29 TheYouth 阅读(248) 评论(0) 推荐(0) 编辑
摘要: PROJECT和TARGETS都需要设置 阅读全文
posted @ 2016-02-03 09:41 TheYouth 阅读(159) 评论(0) 推荐(0) 编辑
摘要: .什么是时间戳? 时间戳是自 1970 年 1 月 1 日(00:00:00 GMT)至当前时间的总秒数。 2.NSDate,时间戳,NSString 之间的转换 3.增加天数 NSDate * date = [NSDate date]; //明天 NSDate *afterToday = [dat 阅读全文
posted @ 2016-01-25 19:51 TheYouth 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 一.提交.a文件 第一种方法: 1. 通常选择svn的commit后一般不会上传.a文件. 2. 选中要上传的.a文件,右击选择Add Working Copy. 3. 然后再点击commit,就可以提交成功. 二.无法上传到svn的文件 错误原因: 通常是你要提交的文件里面含有.svn文件且没有提 阅读全文
posted @ 2016-01-23 13:45 TheYouth 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 三.解决方案 :NSArray = [[NSArray alloc]init] ,然后再赋值 array = [NSArray arrayWithArray:self.dataList]; 原因: 在你遍历这个数组时,又同时修改了这个数组,所以会报错 阅读全文
posted @ 2016-01-22 14:15 TheYouth 阅读(663) 评论(0) 推荐(0) 编辑
摘要: APP上线审核被拒那些事(一) 2.3 - Apps that do not perform as advertised by the developer will be rejected 2.3 Details Your app has the UIFileSharingEnabled key s 阅读全文
posted @ 2016-01-22 13:59 TheYouth 阅读(6702) 评论(0) 推荐(0) 编辑