代码拉取完成,页面将自动刷新
同步操作将从 咚咚/android_ basics 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
追求知行合一,致力化繁为简
swift 与webView
https://www.aliyun.com/jiaocheng/382022.html
https://www.jianshu.com/p/5d91dab36679
//返回键处理
www.cnblogs.com/ficow/p/7639912.html
//IOS 8.0 WKWebView
https://blog.csdn.net/xiangzhihong8/article/details/71302278
//GDWebBrowserClient
https://github.com/coffellas-cto/GDWebViewController
github
https://github.com/nabilfreeman/ios-universal-webview-boilerplate
1、生命周期
http://www.hangge.com/blog/cache/detail_1319.html
2、网路框架
3、IOS 添加权限
//OC HelloWorld
UILabel*label = [[UILabel alloc]initWithFrame:CGRectMake(100,100,200,100)];
UILabel* label = [[UILabel alloc]init];
//这一句创建了一个静态文本控件,未指定内容、大小和位置
label.text=@"hello world";
//"@"的作用是把一个c风格的字符串"hello world"包装成一个NSString对象
[label sizeToFit];
//让静态文本的大小自适应内容
label.center =self.view.center;
//让静态文本居于整个视图的中央
label.font= [UIFontsystemFontOfSize:22];
label.textColor= [UIColorcyanColor];
label.backgroundColor= [UIColorredColor];
//字体大小
[self.viewAddSubview:label];
//将静态文本添加到主视图 中
[UIScreen mainScreen].bounds.size.width 取到屏幕的宽的尺寸
[UIScreen mainScreen].bounds.size.height 取到屏幕的高的尺寸
//创建一个可变数组并初始化
NSMutableArray*mArr = [NSMutableArrayarray];
添加颜色的方法
(UIColor*)colorWithHexString:(NSString*)hexString{
NSString*cString = [[hexStringstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]]uppercaseString];
// String should be 6 or 8 characters
if([cStringlength] <6)return[UIColorblackColor];
// strip 0X if it appears
if([cStringhasPrefix:@"0X"]) cString = [cStringsubstringFromIndex:2];
if([cStringhasPrefix:@"#"]) cString = [cStringsubstringFromIndex:1];
if([cStringlength] !=6)return[UIColorblackColor];
// Separate into r, g, b substrings
NSRangerange;
range.location=0;
range.length=2;
NSString*rString = [cStringsubstringWithRange:range];
range.location=2;
NSString*gString = [cStringsubstringWithRange:range];
range.location=4;
NSString*bString = [cStringsubstringWithRange:range];
// Scan values
unsignedintr, g, b;
[[NSScannerscannerWithString:rString]scanHexInt:&r];
[[NSScannerscannerWithString:gString]scanHexInt:&g];
[[NSScannerscannerWithString:bString]scanHexInt:&b];
return[UIColorcolorWithRed:((float )r /255.0f)
green:((float) g /255.0f)
blue:((float) b /255.0f)
alpha:1.0f];
}
IOS 系统颜色
//系统预设好的颜色
self.view.backgroundColor= [UIColor?redColor];
+ (UIColor*)blackColor;// 0.0
+ (UIColor*)darkGrayColor;// 0.333
+(UIColor*)lightGrayColor;// 0.667
+ (UIColor*)whiteColor;// 1.0
+ (UIColor*)grayColor;// 0.5
+ (UIColor*)redColor;// 1.0, 0.0, 0.0
+ (UIColor*)greenColor;// 0.0, 1.0, 0.0
+ (UIColor*)blueColor;// 0.0, 0.0, 1.0
+ (UIColor*)cyanColor;// 0.0, 1.0, 1.0
+ (UIColor*)yellowColor;// 1.0, 1.0, 0.0
+ (UIColor*)magentaColor;// 1.0, 0.0, 1.0
+ (UIColor*)orangeColor;// 1.0, 0.5, 0.0
+ (UIColor*)purpleColor;// 0.5, 0.0, 0.5
+ (UIColor*)brownColor;// 0.6, 0.4, 0.2
+ (UIColor*)clearColor;// 0.0 white, 0.0 alpha
基础
https://www.jianshu.com/p/9ce5d9407b4d
IOS 调起H5 微信支付
https://www.jianshu.com/p/d7b93ebc00ac
基础运算
NSLog(@"a的值是:%i,b的值是:%f,a加b的值是:%0.2f",a,b,ab);
//截取处理
https://www.jianshu.com/p/67d24bf36121
IOS 分割线
_tbView.separatorInset = UIEdgeInsetsZero;
// 获取当前程序包中一个图片资源(apple.png)路径
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"apple" ofType:@"png"];
UIImage *appleImage = [[UIImage alloc] initWithContentsOfFile:imagePath];
//Image 处理
https://www.jianshu.com/p/deddf7cc47e1
//获取屏幕宽高
CGFloat width = [[UIScreen mainScreen] bounds].size.width;
CGFloat height = [[UIScreen mainScreen] bounds].size.height;
//swift 返回
@weakify(self)
// 返回按钮
[self.baseView.navView addSubview:self.backBtn];
[[self.backBtn rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {
@strongify(self)
if ([self.webView canGoBack]) {
[self.webView goBack];
} else {
[self.viewModel.services popViewModelAnimated:YES];
}
}];
//Demo
https://github.com/Walxyy/CollectionView
https://www.jianshu.com/p/423f919ec8de UICollectionView 快速使用指南
https://www.jianshu.com/p/4ac126d25872//框架
https://www.jianshu.com/p/60b9681dd8d2 //iOS与H5的交互【WKWebView】
https://www.jianshu.com/p/e9b5784637c0 //返回键处理
https://blog.csdn.net/zxtc19920/article/details/80455381 JS互调 不错
判断设备是安卓还是IOS
https://blog.csdn.net/one_person_one_life/article/details/78491899 WKWebView详解
https://github.com/NIUDONG2015/WKWebView
https://github.com/NIUDONG2015/TestHybriod/tree/master/TestHybriod.xcodeproj 交互
https://www.jianshu.com/p/3a22714b12a1 Swift3.0系列之WKWebView 就这样
###网络框架
https://www.jianshu.com/p/11bb0d4dc649 iOS开发之AFNetworking 3.0.4使用
###【链接】苹果手机各种尺寸详细表以及iPhoneX、iPhoneXS
https://blog.csdn.net/a18339063397/article/details/81482073
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。