摘要:
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)
摘要:
1 CGContextRef context = UIGraphicsGetCurrentContext(); 2 //设置线条类型 3 CGContextSetLineCap(context, kCGLineCapRound); 4 //设置宽度 5 CGContextSetLineWidth(context, 1); 6 //设置颜色 7 ... 阅读全文
posted @ 2019-10-15 16:52
洛洛沙
阅读(312)
评论(0)
推荐(0)
摘要:
我要给一个UIView对象topView添加点击事件,方法如下: 步骤1:创建手势响应函数 步骤2:创建手势 步骤3:给View添加手势 阅读全文
posted @ 2019-10-15 14:25
洛洛沙
阅读(9703)
评论(0)
推荐(0)