2015年8月17日

iOS xcode 工程 项目 代码行数统计

摘要: 如果要统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出每个文件的行数find . -name "*.m" -or... 阅读全文

posted @ 2015-08-17 15:49 codemaker313 阅读(160) 评论(0) 推荐(0) 编辑

2015年8月12日

ios NSNotificationCenter 消息的收发

摘要: 发送通知:调用观察者处的方法1 [[NSNotificationCenter defaultCenter] postNotificationName:@"WECHARTPAY"object:nil];参数介绍:postNotificationName:通知的名字,也是通知的唯一标示,编译器就通过这个... 阅读全文

posted @ 2015-08-12 10:01 codemaker313 阅读(212) 评论(0) 推荐(0) 编辑

2015年8月5日

ios app上线后的appstore 下载 地址怎么获取

摘要: http://itunes.apple.com/cn/app/id533655318?mt=8 https://apps.apple.com/cn/app/id1503106924 把id和?之间改成你自己应用的id就可以,应用id在itunesconnect里面申请之后就生成了 阅读全文

posted @ 2015-08-05 09:16 codemaker313 阅读(1082) 评论(0) 推荐(0) 编辑

2015年8月3日

js调用oc方法 UIWebView 跳 到另一个UIWebView

摘要: 1 // 2 // BusinessListViewController.h 3 // LouLiLouWai 4 // 5 // Created by jouhu on 15/7/31. 6 // Copyright (c) 2015年 jouhu. All rights reserve... 阅读全文

posted @ 2015-08-03 16:59 codemaker313 阅读(275) 评论(0) 推荐(0) 编辑

2015年7月31日

可变cell,自适应cell,理解iOS 8中的Self Sizing Cells和Dynamic Type

摘要: 在iOS 8中,苹果引入了UITableView的一项新功能--Self Sizing Cells,对于不少开发者来说这是新SDK中一项非常有用的新功能。在iOS 8之前,如果想在表视图中展示可变高度的动态内容时,你需要手动计算行高,而Self Sizing Cells为展示动态内容提供了一个解决方... 阅读全文

posted @ 2015-07-31 16:49 codemaker313 阅读(261) 评论(0) 推荐(0) 编辑

2015年7月30日

设置textField的placeholder字体的颜色,默认是灰色

摘要: //设置textField的placeholder字体的颜色,默认是灰色UIColor *color = [UIColor whiteColor];self.loginNumText.attributedPlaceholder = [[NSAttributedString alloc] initWi... 阅读全文

posted @ 2015-07-30 10:10 codemaker313 阅读(1055) 评论(0) 推荐(0) 编辑

设置按钮(UIButton)为圆角矩形

摘要: //设置按钮颜色 self.autoLoginCheckBox.layer.borderColor = [[UIColor redColor] CGColor]; //设置边框宽度 self.autoLoginCheckBox.layer.borderWidth = 1; //设置按钮为圆... 阅读全文

posted @ 2015-07-30 10:08 codemaker313 阅读(875) 评论(0) 推荐(0) 编辑

2015年7月25日

UITextView限制输入字数

摘要: 很多时候我们想限制textView中的输入字数,我们可以利用函数- (void)textViewDidChange:(UITextView *)textView中统计textView实现此功能。通过在此函数中统计你输入的字符的个数,当字数超过你限制的字数时调用函数-(NSString *)subst... 阅读全文

posted @ 2015-07-25 14:14 codemaker313 阅读(600) 评论(0) 推荐(0) 编辑

如何更好地限制一个UITextField的输入长度

摘要: 要限制一个UITextField的输入字数(参考链接),首先想到的应该是通过UITextFieldDelegate的代理方法来限制:- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)ra... 阅读全文

posted @ 2015-07-25 13:51 codemaker313 阅读(174) 评论(0) 推荐(0) 编辑

2015年7月24日

uitableview style类型为Grouped时,去掉上面空白的方法

摘要: self.table.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.table.bounds.size.width, 0.01f)]; 阅读全文

posted @ 2015-07-24 15:47 codemaker313 阅读(554) 评论(0) 推荐(0) 编辑

导航