随笔分类 - iOS开发进阶
摘要:应该建立一个vertex shader文件和一个pixel shader文件,分别命名为shader.vsh和shader.fsh。 shader.vsh: shader.fsh: ViewController.m中的代码如下: 运行后得到如下: 参考文献: http://blog.csdn.net
        阅读全文
            
摘要:1.OpenGL简介: OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL三维图形 API 的子集,针对手机、PDA和游戏主机等嵌入式设备而设计。该API由Khronos集团定义推广,Khronos是一个图形软硬件行业协会,该协会主要关注图形和多媒体方面
        阅读全文
            
摘要:最新的SDK下载: http://dev.umeng.com/social/ios/sdk-download 参考文献: http://www.360doc.com/content/15/0121/14/20919452_442560039.shtml 友盟文档中心: http://dev.umen
        阅读全文
            
摘要:http://blog.csdn.net/shenjie12345678/article/details/41120637/
        阅读全文
            
摘要:http://www.cocoachina.com/bbs/read.php?tid=330302
        阅读全文
            
摘要:在代码块中使用对象的成员时(成员变量是属性strong,MRC估计是retain时效果一样,使用方法时也一样): 警告: capturing self strongly in this block is likely to lead to a retain cycle 意思应该是block会reta
        阅读全文
            
摘要://获取系统版本号; float ver = [[UIDevice currentDevice] systemVersion].floatValue; NSLog(@"%f",ver);
        阅读全文
            
摘要:1.A类注册一个通知 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(jump) name:@"jump" object:nil]; -(void)jump{ NSLog(@"A类中的通知");} 2.
        阅读全文
            
摘要://添加监测 - (void)addNotification { [//返回一个UIDevice实例; [UIDevice currentDevice]beginGeneratingDeviceOrientationNotifications];//改变朝向则获悉这一点; [[NSNotificat
        阅读全文
            
摘要:1、 三角函数 double sin (double); 正弦 double cos (double);余弦 double tan (double);正切 2 、反三角函数 double asin (double); 结果介于[-PI/2, PI/2] double acos (double); 结
        阅读全文
            
摘要://打印所以字体 NSArray *familyNames = [UIFont familyNames]; for(NSString *familyName in familyNames) { NSLog(@"%@", familyName); NSArray *fontNames = [UIFon
        阅读全文
            
摘要:1 .h文件#import <UIKit/UIKit.h>@protocol SixButtonDelegate <NSObject>-(void)clickButton:(UIButton*)sender;@end@interface SixButton : UIView@property(non
        阅读全文
            
摘要:1.工具类JF_CalendarTools: .h文件 #import <Foundation/Foundation.h>@interface JF_CalendarTools : NSObject+(int)getWeekOfFirstDayOfMonthWithYear:(int)year wi
        阅读全文
            
摘要:1.添加framework:MobileCoreServices 2.头:#import <MobileCoreServices/MobileCoreServices.h>大致代码: UIImagePickerController *imagePicker=[[UIImagePickerContro
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号