上一页 1 ··· 6 7 8 9 10 11 下一页
  2014年8月24日
摘要: #pragma mark - actionSheet- (void)shareOrder:(NSDictionary *)product{ UIActionSheet *as = [[UIActionSheet alloc] initWithTitle:VIMILocalizedString(@"... 阅读全文
posted @ 2014-08-24 13:59 助金 阅读(265) 评论(0) 推荐(0)
  2014年8月16日
摘要: 简单介绍以下几个宏:1) __VA_ARGS__ 是一个可变参数的宏,这个可变参数的宏是新的C99规范中新增的,目前似乎只有gcc支持(VC6.0的编译器不支持)。宏前面加上##的作用在于,当可变参数的个数为0时,这里的##起到把前面多余的","去掉,否则会编译出错。2) __FILE__ 宏在预编... 阅读全文
posted @ 2014-08-16 00:29 助金 阅读(270) 评论(0) 推荐(0)
  2014年8月15日
摘要: #pragma mark - 合成图- (UIImage *)getShareImageShell:(UIImage *)shareImage { if (shareImage) { CGSize size = CGSizeMake(640, 1084);// UIGraphicsBeg... 阅读全文
posted @ 2014-08-15 14:23 助金 阅读(138) 评论(0) 推荐(0)
  2014年8月7日
摘要: #define IOS_DEBUG //发布时注释此行不输出log日志#ifdef IOS_DEBUG#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...)#endif 阅读全文
posted @ 2014-08-07 18:10 助金 阅读(155) 评论(0) 推荐(0)
摘要: 设定时间让应用从后台回来是否重新启动应用- (void)applicationDidEnterBackground:(UIApplication *)application{ //保存进入后台的时间戳 NSDateFormatter * formatter = [[NSDateFormatter... 阅读全文
posted @ 2014-08-07 14:05 助金 阅读(199) 评论(0) 推荐(0)
  2014年7月28日
摘要: SVN默认是忽略.a文件,所以修改配置文件去掉忽略配置行的 *.a通过终端打开配置文件: open ~/.subversion/config把下面两行(也可能是一行)中的注释和*.a去掉,#global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-... 阅读全文
posted @ 2014-07-28 16:01 助金 阅读(472) 评论(0) 推荐(0)
  2014年7月16日
摘要: UILabel *infoLabel = [[UILabel alloc]initWithFrame:CGRectMake(95, 20, 190, 70)]; infoLabel.backgroundColor = [UIColor clearColor]; infoLabel.textAl... 阅读全文
posted @ 2014-07-16 12:54 助金 阅读(1675) 评论(0) 推荐(0)
摘要: UIImage *image = [[UIImage imageNamed:@"test.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)];其中Insets这个参数的格式是(top,left,bottom,right)... 阅读全文
posted @ 2014-07-16 12:42 助金 阅读(308) 评论(0) 推荐(0)
  2014年7月14日
摘要: ios6和ios7禁止屏幕旋转- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ return(toInterfaceOrientation ==UIInterf... 阅读全文
posted @ 2014-07-14 14:00 助金 阅读(303) 评论(0) 推荐(0)
  2014年7月7日
摘要: iOS 字符串加密至MD5#import + (NSString *) md5:(NSString *)str { const char *cStr = [str UTF8String]; unsigned char result[16]; CC_MD5( cStr, strl... 阅读全文
posted @ 2014-07-07 10:40 助金 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页