随笔分类 -  IOS

记录一些IOS开发需要用到的函数,或者一些基础知识
摘要:IOS中键盘是在编辑控件获得第一响应者时出现,编辑控件有UITextField,UITextView等,这里以UITextField做为例子。首先实现UITextFieldDelegate中的几个方法:#pragma mark - UITextFieldDelegate-(BOOL)textFieldShouldBeginEditing:(UITextField*)textField{ //注册键盘出现和消失的通知中心 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardW... 阅读全文
posted @ 2014-01-03 10:25 苍龙潜行 阅读(524) 评论(0) 推荐(0)
摘要:以下代码中dataArray是存储数据的数组,mainTableView是UITableView控件1.在UITableView的最底部插入-(void)loadTheLastCell{ int lastIndex = [dataArray count]-1; if(lastIndex>=0) { NSIndexPath *path = [NSIndexPath indexPathForRow:lastIndex inSection:0]; NSArray* tArray = [NSArray arrayWithObject:path]; ... 阅读全文
posted @ 2013-12-16 09:32 苍龙潜行 阅读(349) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-06-24 14:14 苍龙潜行 阅读(122) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-06-21 09:56 苍龙潜行 阅读(99) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-06-21 09:18 苍龙潜行 阅读(140) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-06-20 16:03 苍龙潜行 阅读(134) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-06-20 15:42 苍龙潜行 阅读(119) 评论(0) 推荐(0)