上一页 1 ··· 8 9 10 11 12
摘要: 1. /* 图片显示 */ [self.imageView sd_setImageWithURL:[NSURL URLWithString:urlString]]; [self imageCachesWithUrl:[NSURL URLWithString:model.mediumLogo]]; 2 阅读全文
posted @ 2016-05-20 15:18 有棱角的圆 阅读(4015) 评论(0) 推荐(0) 编辑
摘要: 1.A类注册一个通知 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(jump) name:@"jump" object:nil]; -(void)jump{ NSLog(@"A类中的通知");} 2. 阅读全文
posted @ 2016-05-20 15:03 有棱角的圆 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 打开终端,输入: 1.defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool false 此命令关闭显示 阅读全文
posted @ 2016-05-20 10:19 有棱角的圆 阅读(294) 评论(0) 推荐(0) 编辑
摘要: //添加监测 - (void)addNotification { [//返回一个UIDevice实例; [UIDevice currentDevice]beginGeneratingDeviceOrientationNotifications];//改变朝向则获悉这一点; [[NSNotificat 阅读全文
posted @ 2016-05-19 17:14 有棱角的圆 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1、 三角函数 double sin (double); 正弦 double cos (double);余弦 double tan (double);正切 2 、反三角函数 double asin (double); 结果介于[-PI/2, PI/2] double acos (double); 结 阅读全文
posted @ 2016-05-19 16:54 有棱角的圆 阅读(2912) 评论(0) 推荐(0) 编辑
摘要: //打印所以字体 NSArray *familyNames = [UIFont familyNames]; for(NSString *familyName in familyNames) { NSLog(@"%@", familyName); NSArray *fontNames = [UIFon 阅读全文
posted @ 2016-05-19 16:43 有棱角的圆 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1. .h文件 #import <UIKit/UIKit.h>#define Wi [[UIScreen mainScreen]bounds].size.width#define He [[UIScreen mainScreen]bounds].size.height@interface Alert 阅读全文
posted @ 2016-05-19 16:33 有棱角的圆 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1 .h文件#import <UIKit/UIKit.h>@protocol SixButtonDelegate <NSObject>-(void)clickButton:(UIButton*)sender;@end@interface SixButton : UIView@property(non 阅读全文
posted @ 2016-05-19 15:51 有棱角的圆 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1.工具类JF_CalendarTools: .h文件 #import <Foundation/Foundation.h>@interface JF_CalendarTools : NSObject+(int)getWeekOfFirstDayOfMonthWithYear:(int)year wi 阅读全文
posted @ 2016-05-19 15:22 有棱角的圆 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.添加framework:MobileCoreServices 2.头:#import <MobileCoreServices/MobileCoreServices.h>大致代码: UIImagePickerController *imagePicker=[[UIImagePickerContro 阅读全文
posted @ 2016-05-19 15:08 有棱角的圆 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 配置.pch文件刚上手 Xcode6 的人,总会发现之前在 6 之前常常会在“利用名-Prefix.pch”这个文件中来配置我们全局要用到的头文件,但是 xcode6 没有了,人家说,这类东西有时候也会出现1些稀里糊涂的问题,为了不广大程序猿骂娘,还有我高端大气上档次的apple公司不想整天被骂,索 阅读全文
posted @ 2016-05-19 14:48 有棱角的圆 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1.终端进入文件夹目录//xxxxx为文件路径cd xxxxx2.初始化Git输入:git init 3.这会初始化一个空的源,如果你在Finder里面查看或是输入ls命令,你会看到.git子目录已经被创建,很好,接下来输入:git add . 4.这样,当前目录所有的内容就被添加到源里面去了,最后 阅读全文
posted @ 2016-05-19 14:42 有棱角的圆 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12