随笔分类 -  iOS开发进阶

摘要:应该建立一个vertex shader文件和一个pixel shader文件,分别命名为shader.vsh和shader.fsh。 shader.vsh: shader.fsh: ViewController.m中的代码如下: 运行后得到如下: 参考文献: http://blog.csdn.net 阅读全文
posted @ 2016-07-09 11:45 有棱角的圆 阅读(2124) 评论(0) 推荐(0)
摘要:1.OpenGL简介: OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL三维图形 API 的子集,针对手机、PDA和游戏主机等嵌入式设备而设计。该API由Khronos集团定义推广,Khronos是一个图形软硬件行业协会,该协会主要关注图形和多媒体方面 阅读全文
posted @ 2016-07-09 11:29 有棱角的圆 阅读(1714) 评论(0) 推荐(0)
摘要:最新的SDK下载: http://dev.umeng.com/social/ios/sdk-download 参考文献: http://www.360doc.com/content/15/0121/14/20919452_442560039.shtml 友盟文档中心: http://dev.umen 阅读全文
posted @ 2016-07-08 20:43 有棱角的圆 阅读(1502) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/shenjie12345678/article/details/41120637/ 阅读全文
posted @ 2016-07-07 18:00 有棱角的圆 阅读(446) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/bbs/read.php?tid=330302 阅读全文
posted @ 2016-07-06 10:30 有棱角的圆 阅读(140) 评论(0) 推荐(0)
摘要:在代码块中使用对象的成员时(成员变量是属性strong,MRC估计是retain时效果一样,使用方法时也一样): 警告: capturing self strongly in this block is likely to lead to a retain cycle 意思应该是block会reta 阅读全文
posted @ 2016-05-30 15:09 有棱角的圆 阅读(261) 评论(0) 推荐(0)
摘要://获取系统版本号; float ver = [[UIDevice currentDevice] systemVersion].floatValue; NSLog(@"%f",ver); 阅读全文
posted @ 2016-05-20 15:37 有棱角的圆 阅读(135) 评论(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 有棱角的圆 阅读(186) 评论(0) 推荐(0)
摘要://添加监测 - (void)addNotification { [//返回一个UIDevice实例; [UIDevice currentDevice]beginGeneratingDeviceOrientationNotifications];//改变朝向则获悉这一点; [[NSNotificat 阅读全文
posted @ 2016-05-19 17:14 有棱角的圆 阅读(217) 评论(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 有棱角的圆 阅读(2928) 评论(0) 推荐(0)
摘要://打印所以字体 NSArray *familyNames = [UIFont familyNames]; for(NSString *familyName in familyNames) { NSLog(@"%@", familyName); NSArray *fontNames = [UIFon 阅读全文
posted @ 2016-05-19 16:43 有棱角的圆 阅读(306) 评论(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 有棱角的圆 阅读(494) 评论(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 有棱角的圆 阅读(237) 评论(0) 推荐(0)
摘要:1.添加framework:MobileCoreServices 2.头:#import <MobileCoreServices/MobileCoreServices.h>大致代码: UIImagePickerController *imagePicker=[[UIImagePickerContro 阅读全文
posted @ 2016-05-19 15:08 有棱角的圆 阅读(376) 评论(0) 推荐(0)