摘要: 自定义键盘类VolumeInputKeyboardView: VolumeInputKeyboardView.h文件: VolumeInputKeyboardView.m文件: 调用的地方: 最终实现的键盘效果如下: 阅读全文
posted @ 2019-10-16 17:36 洛洛沙 阅读(2458) 评论(0) 推荐(0)
摘要: 1 label.lineBreakMode = NSLineBreakByWordWrapping; 2 label.numberOfLines = 0; 阅读全文
posted @ 2019-10-16 17:21 洛洛沙 阅读(2171) 评论(0) 推荐(0)
摘要: 1 [textField addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged]; 2 3 - (void)textFieldChanged:(UITextField*)textField{ 4 5 NSString *_string = textField. 阅读全文
posted @ 2019-10-16 10:49 洛洛沙 阅读(551) 评论(0) 推荐(0)
摘要: 1.发送消息 2.接收消息 阅读全文
posted @ 2019-10-15 20:01 洛洛沙 阅读(2242) 评论(0) 推荐(0)
摘要: 1 UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"确认" message:@"确认删除吗?" preferredStyle:UIAlertControllerStyleAlert]; 2 3 UIAlertAction *action1 = [UIAlertAction actionWithTitl 阅读全文
posted @ 2019-10-15 18:36 洛洛沙 阅读(5929) 评论(0) 推荐(0)
摘要: Apple在iOS 6中添加了UIRefreshControl,但只能在UITableViewController中使用,不能在UIScrollView和UICollectionView中使用。 从iOS 10开始,UIScrollView增加了一个refreshControl属性,用于把配置好的U 阅读全文
posted @ 2019-10-15 17:44 洛洛沙 阅读(442) 评论(0) 推荐(0)
摘要: 1 UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds]; 2 //将scrollView添加到当前的view中 3 [self.view addSubview:scrollView]; 4 //必须设定contentSize属性。contentSize属性用于指定滚动视图可以滚动的区域 5 阅读全文
posted @ 2019-10-15 17:23 洛洛沙 阅读(357) 评论(0) 推荐(0)
摘要: 使用NSMutableArray的replaceObjectAtIndex方法。 阅读全文
posted @ 2019-10-15 17:07 洛洛沙 阅读(2884) 评论(0) 推荐(0)
摘要: 自定义右侧的一个按钮 自定义右侧多个按钮 转自:https://www.jianshu.com/p/901203a8a90e 阅读全文
posted @ 2019-10-15 17:03 洛洛沙 阅读(1733) 评论(0) 推荐(0)
摘要: 1 NSDate *date=[NSDate date]; 2 NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init]; 3 [dateformatter setDateFormat:@"YYYYMMdd-HH:mm:ss"]; 4 NSString *locationString=[dateformatter s... 阅读全文
posted @ 2019-10-15 17:00 洛洛沙 阅读(374) 评论(0) 推荐(0)