//cocos2dx 获取IOS 分辨率 然后传给Lua
IOS代码:
+(NSString*) getHostResolving
{CGRect rect = [[UIScreen mainScreen] bounds];
CGSize size = rect.size;
CGFloat width = size.width;
CGFloat height = size.height; NSLog(@"print=============555 %f,%f",width,height); //分辨率
CGFloat scale_screen = [UIScreen mainScreen].scale;
NSString *_width = [NSString stringWithFormat:@"%f",width*scale_screen];
NSString *_heigh = [NSString stringWithFormat:@"%f",height*scale_screen];
NSError *error = nil;
NSMutableDictionary *info = [NSMutableDictionary dictionaryWithCapacity:10];
[info setValue:_width forKey:@"width"];
[info setValue:_heigh forKey:@"height"];
NSLog(@"pri