摘要: (1)tiled-0.16.1_地图编辑工具 的下载地址(http://www.mapeditor.org) (2)安装后打开,点击左上角的创建一个地图,Tile Layer Format选择Base64,不要选择CSV,否则在调用地图的时候因为格式问题会报错。 地图大小自己决定,我这里用30x30 阅读全文
posted @ 2016-06-09 12:47 王北城 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: UIWebView是IOS内置的浏览器,可以浏览网页,打开文档 html/htm pdf docx txt等格式的文件。 safari浏览器就是通过UIWebView做的。 服务器将MIME的标识符等放入传送的数据中告诉浏览器使用那种插件读取相关文件。 uiwebview加载各种本地文件(通过loa 阅读全文
posted @ 2016-04-17 22:51 王北城 阅读(285) 评论(0) 推荐(0) 编辑
摘要: (1)Information Needed We began the review of your app but aren't able to continue because we need additional information about your app. At your earli 阅读全文
posted @ 2016-03-01 10:16 王北城 阅读(6782) 评论(0) 推荐(1) 编辑
摘要: (1)在VisitorView.swift文件中,懒加载一个按钮: private var loginButton:UIButton={ let btn=UIButton() btn.setTitle("注册", forState: UIControlState.Normal) btn.setBac 阅读全文
posted @ 2016-02-17 22:32 王北城 阅读(286) 评论(0) 推荐(0) 编辑
摘要: //在-(void)viewWillAppear:(BOOL)animated方法中添加返回按钮//返回按钮 UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom]; leftButton.frame=CGRect... 阅读全文
posted @ 2016-01-26 11:14 王北城 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 创建一个UITextView控件,输入文字,默认是居左居中的,如果想要居上居左的效果,只需要在ViewDidLoad方法中加入如下代码://使uitextview空间的内容 居上居左 if ([self respondsToSelector:@selector(setAutomaticallyAd... 阅读全文
posted @ 2016-01-16 11:23 王北城 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 摘要 Xcode 升级到7之后VVDocumenter-Xcode,OMColorSense,KSImageNamed等一系列的插件失效的解决办法,以及不小心误点了 Skipbundle 的解决办法 Xcode 升级之后插件无法使用 以及误点 Skipbundle 之后的解决办法 小伙伴们在升级了 ... 阅读全文
posted @ 2016-01-08 17:21 王北城 阅读(143) 评论(0) 推荐(0) 编辑
摘要: //标题:红包大厅 UILabel* tmp_title=[[UILabel alloc] initWithFrame:CGRectMake(0 , 5, max_View.frame.size.width, 24)]; tmp_title.text=@"进入红包大厅"; [tmp... 阅读全文
posted @ 2015-12-30 10:19 王北城 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 手机系统升级到iOS9,开发的app调用微信SDK时isWXAppInstalled方法总是返回NO,而用iOS8却能正常返回YES。后来发现是因为系统版本的问题。在网上搜到了解决方法:SDK1.61、iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用... 阅读全文
posted @ 2015-12-23 15:55 王北城 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-20 16:36 王北城 阅读(148) 评论(0) 推荐(0) 编辑