上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 38 下一页

2019年11月28日

flutter的Text,持续更新

摘要: //text的主要属性有:textAlign,maxLines,overflow等。 Text( "hello flutter!", TextAlign:TextAlign.center, maxLines:1, overflow:TextOverflow.ellipsis, // 显示不完,就在后面显示点点 style:TextStyle( fontSize:30.... 阅读全文

posted @ 2019-11-28 17:32 高彰 阅读(570) 评论(0) 推荐(0)

flutter中的=>表示什么

摘要: // =>是return语句的简写 add3(a, b) => a + b; 阅读全文

posted @ 2019-11-28 10:34 高彰 阅读(1672) 评论(0) 推荐(0)

2019年11月27日

Flutter开发 防止OverFlow溢出

摘要: 大家在学习Flutter的时候,刚刚开始学习布局应该会各种遇到溢出。比如在用到Row或者Column经常会遇到布局溢出的问题。 The overflowing RenderFlex has an orientation of Axis.horizontal.flutter: The edge of 阅读全文

posted @ 2019-11-27 18:02 高彰 阅读(9778) 评论(0) 推荐(0)

Flutter BUG Error connecting to the service protocol: HttpException: Connection closed before full..

摘要: Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:53811/WcKOPFtfQvg=/ 阅读全文

posted @ 2019-11-27 17:05 高彰 阅读(1312) 评论(0) 推荐(0)

2019年10月15日

NSMutableArray和NSArray的相互转换

摘要: // NSArray --> NSMutableArray NSMutableArray *myMutableArray = [myArray mutableCopy]; // NSMutableArray --> NSArray NSArray *myArray = [myMutableArray copy]; 阅读全文

posted @ 2019-10-15 13:45 高彰 阅读(355) 评论(0) 推荐(0)

2019年10月14日

ios打印超长字符串

摘要: //超越打印限制 #define NSLog(format,...) printf("%s",[[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String]) 阅读全文

posted @ 2019-10-14 09:44 高彰 阅读(670) 评论(0) 推荐(0)

2019年9月3日

iOS 纯代码跳转到Xib界面和Storyboard界面

摘要: 纯代码跳转到Xib界面或者Storyboard界面,不能按照一般的跳转写法来跳转,会出现空白界面。 跳转到Storyboard界面 阅读全文

posted @ 2019-09-03 13:57 高彰 阅读(1535) 评论(0) 推荐(0)

iOS 获取当前app的 App Store 版本号

摘要: NSString * strurl = [[NSString alloc] initWithFormat:@"http://itunes.apple.com/lookup?id=%@",AppIDs];//替换为自己App的ID NSURLSession *session=[NSURLSession sharedSession]; NSURL *url = [NS... 阅读全文

posted @ 2019-09-03 09:59 高彰 阅读(2764) 评论(0) 推荐(0)

2019年8月27日

iOS 延时方法,定时器。等待一段时间在执行

摘要: 鸣谢:https://www.cnblogs.com/wuotto/p/9354305.html 概述 项目开发中经常会用到方法的延时调用,下面列举常用的几种实现方式: 1.performSelector 2.NSTimer 3.NSThread线程的sleep 4.GCD 1.performSel 阅读全文

posted @ 2019-08-27 16:42 高彰 阅读(1347) 评论(0) 推荐(0)

iOS获取当前app的名称和版本号及其他信息(持续维护)

摘要: // 1. iOS 获取到的 APP 的信息// iOS获取当前app的名称和版本号 NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];//获取app版本信息 NSLog(@"%@",infoDictionar 阅读全文

posted @ 2019-08-27 16:36 高彰 阅读(3394) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 38 下一页

导航