1down voteIf you decide to add a .pch file manually and you want to use Objective-C just like before xCode 6 you will also have to import UIKit and Fo...
分类:
其他好文 时间:
2015-01-10 16:29:35
阅读次数:
171
Swift语言中的UITableView中着实很坑爹,为什么呢,因为在遵循协议后经常会报这样的错误:does not conform to protocol 'UITableViewDataSource'。而且是第一次尝试的伙伴们经常会发现,我写的代码没有问题呀,该写的都写了,为什么还是报错呢,有的时候是xcode的问题,有的时候又是自己遵循的协议中有必需实现的方法而没有实现导致的。所以遇到这种问...
分类:
编程语言 时间:
2015-01-10 12:44:59
阅读次数:
181
打开Xcode,新建一个Xcode项目,在OS X下面选择Application,再选择Command Line Tool,点击next,再下一个页面输入项目名称,点击next就完成了。此时,我们可以看到一个main.m的文件,其中有如下代码:
#import
int main(int argc, const char * argv[]) {
@autoreleasepool {...
分类:
其他好文 时间:
2015-01-10 08:57:38
阅读次数:
176
在项目根目录建议一个.gitignore文件,根据需要输入如下内容(可参见官方模板https://github.com/github/gitignore)#-------Object-c----#Xcode#build/*.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3xcu..
分类:
其他好文 时间:
2015-01-09 19:30:48
阅读次数:
199
將 Xcode 升级到最新,在使用AFNetworking时遇到了 property synthesis 相关的 error,错误信息如下:
Auto property synthesis will not synthesize property ‘request‘ because it is ‘readwrite‘ but it will be synthesized ‘readonly‘...
分类:
Web程序 时间:
2015-01-09 19:22:54
阅读次数:
217
1.数据库:DB2 Oracle Sybase SQL Server mySQL SQLite2.开发语言:c/c++ java .net php object-c (1)两种开发思想:面向对象和面向过程3.开发工具:eclipse Xcode myeclipse mulestudio4.常见容器:...
分类:
其他好文 时间:
2015-01-09 19:11:27
阅读次数:
154
在Xcode 6所有快捷键中下列这些是首当其冲应当学习的。在你学习到如何使用之后,也许就再也离不开它们了。Xcode导航快捷键1.工程导航器:Command+1快速浏览代码、图片以及用户界面文件。2.显示/隐藏导航器面板:Command+0当你在对屏幕进行截图的时候可能会想要隐藏起与你感兴趣内容的无关的部分。假如你想要使用辅助编辑器或者想要设计用户界面并将其连接到代码的时候,这个快捷键会相当有用。...
分类:
移动开发 时间:
2015-01-09 17:31:45
阅读次数:
153
之前零零散散写了, 转了一系列Xcode使用相关的文章,包括调试技巧,快捷键等等,但是一直没有汇总。今天就专门开一篇合集,纪录自己接触过的一些技巧。 以后相关的主题都会在这里持续更新。 iOS开发- Xcode常用快捷键iOS开发准备篇-(4)Xcode基本操作 iOS开发准备篇-(5)Xcode调试技巧_1 ios开发准备篇-(6)Xcode调试技巧_2ios开发准备篇-(7)Xcode调试技巧...
分类:
其他好文 时间:
2015-01-09 17:29:06
阅读次数:
158
执行 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 即可解决。
分类:
移动开发 时间:
2015-01-09 12:35:48
阅读次数:
178
1、将运行目标选为iOS Device2、Edit Scheme -> 选择 Run [App Name] -> Build Configuration下拉框中选择Release3、生成编译文件,Product -> Build4、/Users/用户名/Library/Developer/Xcode...
分类:
其他好文 时间:
2015-01-08 20:02:34
阅读次数:
217