摘要: 原 apps被拒绝的各种理由以及翻译 1. Terms and conditions(法律与条款) 2. Functionality(功能) 3. Metadata (name, descriptions, ratings, rankings, etc)(描述数据(名称,描述,评级,分类等)) 4、 阅读全文
posted @ 2016-01-20 13:45 TheYouth 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1.json数据 2.json数据转换成数组或字典 阅读全文
posted @ 2016-01-19 20:05 TheYouth 阅读(341) 评论(0) 推荐(0) 编辑
摘要: //字典转换成字符串NSDictionary *dict =[NSMutableDictionary dictionary];NSData *data = [NSJSONSerializationdataWithJSONObject:dict options:false error:nil];NSS... 阅读全文
posted @ 2016-01-14 19:54 TheYouth 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1.上架之前首页要配置好发布证书,配置用于发布的配置文件.2.必须上传3.5英寸和4英寸图片,这两种图片尺寸不能缺.3.提交的版本必须是在8.0及以上的版本.4.必须用发布证书,如果提示UUID不对的话,可以这样设置一个为发布配置文件,一个为自动,或者掉换5.定位功能,如果是后台定位的,一定要有个专... 阅读全文
posted @ 2016-01-12 00:24 TheYouth 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 一.APNS 远程推送 1.所有的苹果设备,在联网状态下,都会与苹果服务器建立长连接. 2.长连接:就是只要联网了,就一直建立连接. 3.长连接的作用:时间校准,系统升级,查找我的iPhone. 4.长连接的好处:数据传输速度快,数据保持最新状态. 5. DeviceToken 处理流程如下: 6. 阅读全文
posted @ 2016-01-03 16:27 TheYouth 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1、CGRectInset CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy ); 该结构体的应用是以原rect为中心,再参考dx,dy,进行缩放或者放大。 2、CGRectOffset CGRect CGRectOffset( CGRect rect, CGFloat dx,... 阅读全文
posted @ 2015-12-22 18:53 TheYouth 阅读(360) 评论(0) 推荐(0) 编辑
摘要: fabs 是计算绝对值 %lf 是代表double类型.下面是个小例子,浮点数比较//浮点数比较#include #include int main (void){ const double answer = 3.1415926; double response; printf("... 阅读全文
posted @ 2015-12-21 21:37 TheYouth 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 定义 #import @interface UIImage (ChangeImageColor) /** * 改变图片的颜色 * * @param tintColor * * @return */ - (UIImage *) imageWithTintColor:(UIColor *)tintColor; @end 实现 - (UIImage *)imageWith... 阅读全文
posted @ 2015-12-21 21:09 TheYouth 阅读(724) 评论(0) 推荐(0) 编辑
摘要: // 1.奇数的最后一位是1,而偶数的最后一位是0, 如5/2得2,所以下一位是0,若是得出奇数则下一位是1,如果是6的话就是r = 6%2 >0 ,6大于等于2 >6/2 >3 ,>r = 3%2 >1 ,最后一位和所有的都等于n%2 所以用到递归,r就是最后的值等于n%2 ,下一位被除数等于n/ 阅读全文
posted @ 2015-12-20 21:57 TheYouth 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 需要注意的是,md5加密时,必须导入 #import <CommonCrypto/CommonDigest.h>头文件 阅读全文
posted @ 2015-12-20 20:40 TheYouth 阅读(149) 评论(0) 推荐(0) 编辑