- 博客(5)
- 收藏
- 关注
转载 iOS获取通话状态
#import #import [plain] view plaincopy -(void)detectCall { CTCallCenter *callCenter = [[CTCallCenter alloc] init]; callCenter.callEventHandler=^(CTCall* call
2016-04-17 12:37:00 1063
转载 获取UIWebView内容
获取所有html:NSString *lJs = @"document.documentElement.innerHTML";获取网页title:NSString *lJs2 = @"document.title"; thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.loc
2016-04-16 11:13:53 288
原创 iOS label设置内容为HTML
NSString * htmlstr =@"测试段落"; NSData *data = [htmlstrdataUsingEncoding:NSUnicodeStringEncoding]; NSDictionary *options =@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType};
2016-04-15 17:16:33 348
转载 iOS限制输入长度
[textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];- (void)textFieldDidChange:(UITextField *)textField{ if (textField
2016-04-13 16:52:53 246
原创 iOS手势滑动返回
自定义返回按钮时:- (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; //代理置空,否则会闪退 if ([self.navigationController respondsToSelector:@selector(intera
2016-04-13 16:46:24 301
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人