
ios
文章平均质量分 59
笙尽缘无
这个作者很懒,什么都没留下…
展开
-
ios 访问权限获取
找到info.plist ->open As->source Code NSAppTransportSecurity NSAllowsArbitraryLoads true/> NSContactsUsageDescription 请求访问通讯录 NSMicropho转载 2017-06-08 18:52:29 · 290 阅读 · 0 评论 -
waeng: Attempt <Controller > whose view is not int the window hierarchy
出现这个问题的情况是第三方SDK操作完成后,返回应用的时候。 解决办法是在切换第三方SDK的时候传根控制器- (UIViewController *)currentViewController { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; UIViewController *vc = k转载 2018-02-05 09:15:36 · 179 阅读 · 0 评论 -
not found FileProvider for architecture armv7
我这是接第三方SDK的时候出现的问题 第三方xcode使用的是9.0版本以上 本地版本是8.0 我这边的解决办法是9.0的FileProvider.framework,FileProviderUI.framework,IOSurface.framework三个库文件拷贝到本地下 /Applications/Xcode.app/Contents/Developer/Platforms原创 2018-02-02 17:01:12 · 569 阅读 · 0 评论 -
cocos ios editBox 键盘退不下去
/frameworks/cocos2d-x-3/cocos/platform/ios/CCEAGLView-ios.mm-(void) handleTouchesAfterKeyboardShow { NSArray *subviews = self.subviews; for(UIView* view in subviews) { //if([view转载 2018-01-11 16:11:55 · 1278 阅读 · 0 评论 -
cocos ios上传图片
NSString *TMP_UPLOAD_IMG_PATH=@""; //图片的路径 + (NSString*) uploadPicture:(NSString *)sUrl { NSMutableDictionary * dir=[NSMutableDictionary dictionaryWithCapacity:7]; [dir setValue:@"转载 2017-12-20 15:25:20 · 1046 阅读 · 0 评论 -
html5 唤起app
html5 测试代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>Test Scheme</h1> <!--自动加载隐藏页面跳转--> <a id="100" class="arouseApp" href="myscheme://http://196.168.2.1?key=mykey"><s转载 2017-09-05 15:42:25 · 3305 阅读 · 0 评论 -
ios --- NSString 基本操作
//创建常量字符串。 NSString *astring = @"This is a String!";//创建空字符串,给予赋值。 NSString *astring = [[NSString alloc] init]; astring = @"This is a String!"; astring = [NSString stringWithFormat:@"This is a String!转载 2017-09-07 11:53:36 · 361 阅读 · 0 评论 -
cocos ios退出
+(void)exitGame{ abort(); [UIApplication sharedApplication].idleTimerDisabled=NO; }转载 2017-07-18 14:20:19 · 715 阅读 · 0 评论 -
cocos js 在android ios 打开网页
AppActivity.java public static void openUrl(String url) { Uri uri = Uri.parse(url); Intent it = new Intent(Intent.ACTION_VIEW,uri); instance.getContext().s转载 2017-07-04 14:04:48 · 504 阅读 · 0 评论 -
cocos js 3.9 ios视频层级修改
AppController.h @property(nonatomic,readonly) UIView * videoView; AppController.mm viewController.view.tag = 3; //给原来的view设置tag值 UIViewController* uiVC = [[UIViewController alloc] initWithNibName:ni...转载 2018-07-20 19:41:47 · 510 阅读 · 1 评论