摘要:
1.去掉tableView的分割线 1>self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 2> self.tableView.separatorColor =[UIColor clearColor]; 2.点击tab 阅读全文
摘要:
自定义cell时需要继承UITableViewCell. 举例:ZLSchoolListTableCell继承UITableViewCell ZLSchoolListTableCell.h文件 #import <UIKit/UIKit.h> @class SchoolModel(模型); @inte 阅读全文
摘要:
使用方法: 为某一范围内文字设置多个属性 - (void)setAttributes:(NSDictionary *)attrs range:(NSRange)range; 为某一范围内文字添加某个属性 - (void)addAttribute:(NSString *)name value:(id) 阅读全文
摘要:
这种错误一般指用到的第三方框架不支持64位手机 解决办法: 阅读全文
摘要:
但凡看到错误提示中提示两个冒号C++代码,默认情况下Xcode创建的工程是不支持C++ 解决办法:将工程中任意一个文件的后缀改为.mm即可 .c C代码 .cpp C++代码 .m C代码 +OC代码 .mm C代码 +OC代码 +C++代码 阅读全文
摘要:
代表静态库中依赖的一些框架没有导入。如果静态库中用到了框架就必须导入 阅读全文
摘要:
#define NUMBERS @"0123456789" #define ENGLISH @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefjhigklmnopqrstuvwxyz" - (BOOL)textField:(UITextField*)textField should 阅读全文
摘要:
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { if ([text isEqualToString:@"\n"]) { [ 阅读全文
摘要:
1.设置键盘的类型,returnKeyType =UIReturnKeyDone;(可以根据具体情况设置键盘类型) - (BOOL)textFieldShouldReturn:(UITextField *)textField{ [self.view endEditing:YES]; return Y 阅读全文
摘要:
UIView*leftv = [[UIView alloc]init]; leftv.frame = CGRectMake(0, 0, 12, 1); textFiled.leftView = leftv; textFiled.leftViewMode = UITextFieldViewModeAl 阅读全文