- 博客(9)
- 收藏
- 关注
原创 iOS多线程技术
1. NSObject多线程 [self performSelectorInBackground:@selector(intoBackground) withObject:nil]; [self performSelectorOnMainThread:@selector(intoForword) withObject:nil waitUntilDone:YES];
2016-03-02 11:04:42 280
原创 键盘收回和拉起以及键盘的类型
UISearchBar: -(void)createNotiFication { [[NSNotificationCenter defaultCenter]addObserver:selfselector:@selector(keyboardwillshow:) name:UIKeyboardWillShowNotificationobject:nil];
2016-03-02 10:45:32 382
原创 UINavigationBar 的设置
由于UINavigationBar的特殊性;(有两层,不能直接设置透明度和颜色) //改变NavigationBar的颜色 1. self.navigationController.navigationBar.tintColor = [UIColor redColor]; 2.给NavigationBar增加类别(Category),如下,之后可以使用如下
2016-03-02 10:44:24 387
原创 iOS拨打电话
1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示 NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"186xxxx6979"]; // NSLog(@"str======%@",str); [[UIApplication
2016-03-02 10:43:13 298
转载 UISearchBar 和 UISearchController
UISearchBar UISearchBar属性相关 _searchBar = [[UISearchBar alloc] initWithFrame:CGRectZero];//初始化,不解释 [self.searchBar setPlaceholder:@"Search"];// 搜索框的占位符 [self.searc
2016-03-02 10:41:22 323
原创 UMeng分享
1. 进入http://www.umeng.com 2. 点击我的产品(右上角) 3. 添加新应用(左下角) 。。。。。 4. 按照流程进行 注释: 如果需要添加其他,需要先注册需要添加的平台的AppId 和AppKey 然后:
2016-03-02 10:39:39 538
转载 iOS第三方整理
一:第三方插件 1:基于响应式编程思想的oc 地址:https://github.com/ReactiveCocoa/ReactiveCocoa 2:hud提示框 地址:https://github.com/jdg/MBProgressHUD 3:XML/HTML解析 地址:https://github.com/topfunky/hpple 4:有文字
2016-03-02 10:37:45 407
原创 SDWebImage 加载网路图片
1. 添加SDWebImage 第三方库,导入 #import "UIImageView+WebCache.h" (设置imageView图片) #import "UIButton+WebCache.h" (设置button图片) 2. 使用方法 [cell.imageView sd_setImageWithURL:[NSURL URLWithS
2016-03-02 10:32:40 450
原创 Class 反射机制
普通: Class class = [Dog class]; 类名为字符串 Class cls = NSClassFromString(NSString *aClassName) (括号内为字 符串)
2016-03-02 10:19:03 324
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人