随笔分类 - IOS
摘要:http://www.cocoachina.com/ios/20141023/10027.html https://developer.apple.com/library/prerelease/content/documentation/General/Conceptual/Extensibilit
阅读全文
摘要:#! /bin/bash #firtoken 29b441056e1e17c984cb32fadadsdddd shell_dir=`dirname $0` TARGET_NAME="SmartLock" DIR_PATH=/Users/用户名/Desktop/SmartLock SIGN="iPh
阅读全文
摘要:来自: http://my.oschina.net/91jason/blog/546711 看不到内容请点击编辑查看(仅限作者,后续再改) 摘要 mac os 10.10以上的开启端口转发-解决mac默认不开启1024以下端口权限问题 mac os 10.10以上的开启端口转发-解决mac默认不开启
阅读全文
摘要:void UncaughtExceptionHandler(NSException *exception) { //获取异常信息 NSArray *arr = [exception callStackSymbols]; NSString *reason = [exception reason]; }
阅读全文
摘要:- (void)awakeFromNib { [self.descriptionLabel addObserver:self forKeyPath:@"text" options:NSKeyValueObservingOptionNew context:nil]; [super awakeFromN
阅读全文
摘要:1.文档 中文 官方英文 2.内购 http://www.2cto.com/kf/201504/389224.html 3.keychain UUID http://blog.csdn.net/wonengxing/article/details/42142595
阅读全文
摘要:参考如下:最近升级了系统到Mac OS X 10.10 并且更新了XCode6.1和iOS 8.1之前app用到的libmp3lame.a静态库,也要支持64位的模拟器(x86_64)和64位的真机(arm64)指令集。需要重新编译查阅了下资料,按照如下步骤,并做了些注释和改动1.http://so...
阅读全文
摘要:在全局UINavigationController中添加如下代码- (void)viewDidLoad { [self addHeaderTouch]; [super viewDidLoad]; // Do any additional setup after loading the view...
阅读全文
摘要:1、url中找字段+(NSString *)jiexi:(NSString *)CS webaddress:(NSString *)webaddress{ NSError *error; NSString *regTags=[[NSString alloc] initWithFormat...
阅读全文
摘要:1、字数限制[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFiledEditChanged:) name:@"UITextFieldTex...
阅读全文
摘要:-(void)resetTabbarController:(UITabBarController *)controller { NSArray *arr = controller.tabBar.items; UITabBarItem *item0 = [arr objectAtIndex:0]...
阅读全文
摘要:NSDateFormatter *format = [[NSDateFormatter alloc] init]; [format setLocalizedDateFormatFromTemplate:@"yyyy-MM-dd HH:mm:ss"]; [format setTimeZone:[...
阅读全文
摘要:1.主线程在动画未结束时进行操作可能导致应用崩溃 如下,当dismissViewControllerAnimated:为YES时,由于后续有页面显示,就在应用中导致了崩溃 - (void)imagePickerController:(UIImagePickerController *)picker
阅读全文
摘要:1.IOS8 注册远程通知 if([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) { [[UIApplication sharedApplication] registerUserNotificationSettings:[UI
阅读全文
摘要:告警等级系统有四种内存警告,定义如下: typedef enum { OSMemoryNotificationLevelAny = -1, OSMemoryNotificationLevelNormal = 0, OSMemoryNotificationLe...
阅读全文
摘要:[[[self view] layer] setBackgroundColor:[[UIColor blackColor] CGColor]]; UIImage *balloon = [UIImage imageNamed:@"dengni37.jpg"]; //图片层 CALayer...
阅读全文
摘要:第三方框架: SDWebImage使用——一个可管理远程图片加载的类库 RegexKitLite 实现正则表达式 iPhone开发之全景展示(panoramagl) 富文本类库RTLabel MBProgressHUD提示框 EGOTableViewPullRefresh(一)实现下拉刷新 日历,万
阅读全文
摘要:#define ColorWithString(string) [MPUniversal colorWithString:string]/*** 转换字符串为UIColor** @param string 字符串类型:ffffff六位,ffffffff八位,#ffffff,#ffffffff; 字符...
阅读全文
摘要:#import @interface CXUnderLineButton : UIButton+ (CXUnderLineButton *) underlinedButton;@end#import "CXUnderLineButton.h"@implementation CXUnderLineBu...
阅读全文
摘要://可以不被电池栏挡住+ (UILabel *)alertLabel{ UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 20.f, 320.f, 0.f)]; label.backgroundColor = [UICo...
阅读全文

浙公网安备 33010602011771号