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