IOS
一颗沙子
这个作者很懒,什么都没留下…
展开
-
编译脚本命令
chmod 777 build.sh./build.sh编译脚本原创 2021-10-28 17:58:15 · 171 阅读 · 0 评论 -
ios DeviceSupport版本
版本目录/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport原创 2020-09-12 15:08:41 · 736 阅读 · 0 评论 -
macbook 下appium 不支持findElementByName
appium 1.10.0 findElementByName(By.name("名称"))报错org.openqa.selenium.InvalidSelectorException:Locator Strategy 'name' is not supported for this session 修改/Applications/Appium.app/Contents/R...原创 2019-01-08 10:48:05 · 948 阅读 · 0 评论 -
macbook 下iphone 抓包
rvictl -s be1a207465c5ac7bb3fa4ea39edc8b****************** mac 安装wireshark,终端执行上面的字令,后面的iphone 的uuid,打开wireshark选上rvi,进入包的界面,可以过滤tcp或者udp 或者ip 的信息...原创 2019-01-05 22:55:01 · 344 阅读 · 0 评论 -
mac 配置studio
今天折腾macbook studio问题1. 倒入项目一直 build info因为Gradle 无法下载,网上离线 下载gradle包,放到对应的/Users/用户名/.gradle/wrapper/dists/目录下2. adb 配置在命令行输入echo $HOME命令行输入touch .bash_profile (注意,touch后面有一个空格)命令行输入open -e .bash...原创 2018-03-11 00:34:56 · 633 阅读 · 0 评论 -
Could not find Developer Disk Image
添加新设备调试Could not find Developer Disk Image 报错下载新disk image 放到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 重启xcode原创 2017-01-18 14:09:10 · 230 阅读 · 0 评论 -
ios 时间以unix时间戳现显示
NSDate* dat = [NSDatedateWithTimeIntervalSinceNow:0];NSTimeInterval a=[dattimeIntervalSince1970]*1000;NSString *timeString = [NSStringstringWithFormat:@"%0.f", a];timeString ---->14683原创 2016-07-13 00:02:57 · 1690 阅读 · 0 评论 -
iOS 9.0以后网络请求异常
报:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.在Info.plist添加属性App原创 2016-05-07 18:13:43 · 905 阅读 · 0 评论 -
http get(swift and oc)
SynchonousRequest:let urlPath:String = "http://www.weather.com.cn/data/sk/101010100.html" var url:NSURL = NSURL(string: urlPath)! var request1:NSURLRequest = NSURLRequest(URL原创 2015-07-22 23:55:53 · 767 阅读 · 0 评论 -
ios UIView的常用属性
UIView的常用属性1——父子视图属性1. superview 获得自己的父控件对象2. subviews 获得自己的所有子控件对象注意:一个视图最多只能有一个父视图一个视图可以有多个子视图UIView的常用属性2——位置尺寸属性1. frame 控件所在矩形框的位置和尺寸(以父控件的左上角为坐标原点)2. bounds 控件所转载 2015-06-24 21:37:34 · 407 阅读 · 0 评论 -
IOS UILabel的常用属性
// 实例化UILabel并指定其边框UILabel*label = [[UILabelalloc]initWithFrame:CGRectMake(0.0,210.0, 320.0,40.0)];// 设置label显示的文本[label setText:@"HelloWorld"];// 设置字体和字体大小[label setFont:[UIFontfont转载 2015-06-24 21:19:11 · 446 阅读 · 0 评论 -
ios UIButton的常用属性
•通用实例化对象方法:UIButton *button=[[UIButtonalloc] initWithFrame:rect];••快速实例化对象方法:UIButton*button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect];•提示:在OC开发中,实例化任何类型的非自定义对象,都请首先尝试一下是否存在快速转载 2015-06-24 21:29:33 · 515 阅读 · 0 评论 -
ios 图标的配置
开始接触IOS,由android 到ios,慢慢适应新东西1.将准备好的icon 放到项目工程中2.找到工程的supporting files文件夹,再找到XXXX-info.plist文件,打开此文件,找到icon files (若没有,自己新建),找到item0赋值icon图标的名称,运行后app就是设定的icon。3.在此文件,还有其他的选项,可以慢慢摸索原创 2015-04-17 21:11:10 · 594 阅读 · 0 评论