- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 禁止UITextField输入字符 只能输入数字
禁止UITextField输入数字 :- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { return [selfvalidateNumber:string];}
2016-05-27 14:57:39 274
原创 读取本地json文件
如何读取本地json文件:NSString *textPath = [[NSBundlemainBundle] pathForResource:@"test1"ofType:@"json"]; NSData *textData = [NSDatadataWithContentsOfFile:textPath]; NSDictionary *textDic =
2016-05-12 10:09:35 535
原创 iOS 键盘遮挡
- (void)viewWillAppear:(BOOL)animated { [superviewWillAppear:animated]; [selfregisterKeyboardEvent];}- (void)viewWillDisappear:(BOOL)animated { [superviewWillDisappear:ani
2016-05-06 10:01:09 290
原创 iOS tabelView获取当前选中cell
TabelView获取当前选中cell:NSIndexPath *lastIndexPath = [tableViewindexPathForSelectedRow]; DDPEditorCell *newCell = [tableViewcellForRowAtIndexPath:indexPath];记录上一次点击cell:static
2016-05-06 09:13:10 699
原创 iOS 设置圆角
事例 给按扭UIButton *_radioButton设置圆角: _radioButton.layer.borderWidth =1.f; // 设置边框宽度 _radioButton.layer.borderColor = [[UIColoryellowColor] CGColor]; // 设置边框颜色 _radioButton.layer.masks
2016-05-05 10:20:05 347
iOS 13调试包.zip
2019-11-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人