自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 ATS设置

<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsArbitraryLoadsInWebContent</key> &

2018-09-24 13:39:08 800

原创 关闭键盘

#pragma mark -- 实现UITextFieldDelegate委托协议方法-(BOOL)textFieldShouldReturn:(UITextField *)textField{ NSLog(@"TextField获得焦点,点击return键"); //点击return关闭键盘 [textField resignFirstResponder]; ...

2018-09-18 12:25:43 236

原创 UITextField和UITextView

#import "ViewController.h"@interface ViewController ()<UITextFieldDelegate,UITextViewDelegate>@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //设置...

2018-09-18 01:03:02 155

原创 WKWebView加载本地资源loadData:MIMEType:characterEncodingName:baseURL:

  #import "ViewController.h"#import <WebKit/WebKit.h> @interface ViewController ()<WKNavigationDelegate>@property(nonatomic,strong) WKWebView* webView;@end @implementatio...

2018-09-17 21:52:29 5413 1

原创 WKWebView加载本地资源loadHTMLString:baseURL:

 #import "ViewController.h"#import <WebKit/WebKit.h> @interface ViewController ()<WKNavigationDelegate>@property(nonatomic,strong) WKWebView* webView;@end @implementation V...

2018-09-17 21:31:00 4931

原创 WKWebView加载网络资源

  #import "ViewController.h"#import <WebKit/WebKit.h> @interface ViewController ()<WKNavigationDelegate>@property(nonatomic,strong) WKWebView* webView;@end @implementatio...

2018-09-17 19:46:52 1627

原创 ui事件

UIControlEventTouchDown单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。UIControlEventTouchDownRepeat多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。UIControlEventTouchDragInside当一次触摸在控件窗口内拖动时。UIControlEventTouchDragOutside当一次触摸...

2018-09-13 15:35:47 147

原创 设置背景图片

iOS开发中有时候会将UIViewController或者UIView的subViews设置为透明,然后在底部设置背景图片,我们常用加载图片有UIImage的imageName和imageWithContentsOfFile两个方法:[UIImage imageNamed:@"FlyElephant"][UIImage imageWithContentsOfFile:@"FlyElephant"]...

2018-09-13 14:07:20 1701

原创 json解析——从网络

- (IBAction)button1a:(id)sender { //网络资源文件地址url NSURL *url = [NSURL URLWithString:@"http://www.weather.com.cn/data/cityinfo/101010100.html"]; //由地址解析出数据,此数据存储在NSData对象中 NSData *jsonda...

2018-09-12 15:49:19 260

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除