Menu Home

iOS:How to get your framework version using code

Add these lines in your Framework header file. eg. PrefixFramework.h //! Project version number for LocalSearch. FOUNDATION_EXPORT double PrefixFrameworkVersionNumber; //! Project version string for LocalSearch. FOUNDATION_EXPORT const unsigned char PrefixFrameworkVersionString[]; There arguments will be filled by iOS framework logic.And you can get the version like this: +(NSString*) playerVersion { NSRange […]


老的Podfile格式install时提示如下错误: The dependency `AFNetworking (~> 2.6)` is not used in any concrete target 官方推荐新格式: platform :ios, ‘8.0’ target ‘MyApp’ do pod ‘AFNetworking’, ‘~> 2.6’ end


EAGLContext *contextGL; contextGL = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; if (contextGL == nil) { NSLog(@”wangsijie, failed to create EAGLContext”); } else { NSLog(@”wangsijie, create EAGLContext OK”); } CGRect rectGL = CGRectMake(100, 100, 150, 100); GLKView *viewGL = [[GLKView alloc] initWithFrame:rectGL]; viewGL.context = contextGL; viewGL.enableSetNeedsDisplay = NO; [self.view addSubview:viewGL]; [viewGL setDelegate:self]; CADisplayLink *displayLink […]