没有合适的资源?快使用搜索试试~ 我知道了~
首页通过7个项目提升iOS应用开发:Swift 2 Blueprints实战指南
通过7个项目提升iOS应用开发:Swift 2 Blueprints实战指南
需积分: 10 2 下载量 25 浏览量
更新于2024-07-21
1
收藏 6.73MB PDF 举报
"《Swift 2 Blueprints》是一本由Cecil Costa编著的Packt Publishing在2015年出版的专业书籍,专为iOS开发者设计,旨在通过实践项目提升读者的Swift编程技能。本书共包含七个精心策划的实战项目,让读者能够亲手构建出令人惊叹的应用程序,覆盖了iOS设备开发的广泛领域。 首先,作者引导读者从基础开始,通过一个实用应用项目学习如何使用Swift语言进行开发。随后,书中深入讲解了娱乐和社交类应用的开发理念,例如创建一个允许设备间分享图片、音频和视频文件的小工具。接着,读者将学习如何构建一个拥有自定义表格视图的城市信息应用,这对于理解和优化iOS界面设计具有重要意义。 对于智能手表应用,你将跟随教程制作一个提醒应用,这不仅锻炼了针对Apple Watch的特定开发技能,也展示了跨平台应用开发的策略。最后,本书还涵盖了使用SpriteKit开发游戏应用程序,帮助读者掌握游戏开发的基础知识和性能优化技巧。 通过完成这些项目,读者不仅能掌握开发各种类型iOS应用的基本技能,还能了解如何应对不同设备的需求,以及如何通过复杂技术提升应用性能。此外,版权信息强调了所有内容的准确性,并提醒读者在未经许可的情况下不得复制或传播书中的信息,除非用于学术引用。 《Swift 2 Blueprints》是一本全面且实用的资源,适合希望在Swift 2环境中提升iOS应用开发能力的开发者,无论是初学者还是有一定经验的开发者都能从中受益匪浅。通过实际操作,读者将能够积累宝贵的经验,为自己的职业发展打下坚实的基础。"
资源详情
资源推荐
Preface
[ ix ]
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very seriously.
If you come across any illegal copies of our works in any form on the Internet, please
provide us with the location address or website name immediately so that we can
pursue a remedy.
Please contact us at
copyright@packtpub.com with a link to the suspected
pirated material.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
Questions
If you have a problem with any aspect of this book, you can contact us at
questions@packtpub.com, and we will do our best to address the problem.
[ 1 ]
Exploring Xcode
Programming is not only about code, it is also about methodology. It doesn't
matter how many years you've been programming with Xcode, there is always a
new feature that can speed up your development, mainly nowadays that there is a
new version every few months. Don't forget that Swift is a new language created
to replace the old Objective-C, which means that Xcode also needs to adopt new
features for this new programming language.
This book is about creating applications with the Swift programming language using
Xcode 6 as an IDE. The idea behind these apps is to show how to create different
kinds of real apps from scratch and this chapter presents with you some tricks on
how to use Xcode.
Even if you are already a developer with years of experience in Xcode, it is worth
reading this chapter because there is always a different way to do a task and it can be
very helpful. So, let's start reviewing some Xcode and Swift features. In this chapter,
we will cover:
• Keyboard shortcuts
• Versioning your project
• Testing with Playground
• Debugging
• New Swift features
• Some final comments
Exploring Xcode
[ 2 ]
Keyboard shortcuts
Have you ever thought of how much time a developer expends in moving the mouse
pointer? It can be a lot of time. How about reducing some time by memorizing a few
key combinations. Of course, don't expect to memorize all of them in a day. You can
practice them when it is necessary; you will see that, after a while, you will save a lot
of time. Of course, command + X, command + C, command + V, and command + Q are
not going to be mentioned for they are assumed to be known.
The rst shortcut we are going to learn is command + B, which is to build the solution
without running it on the device or simulator. This key combination is very useful
when you want to check whether the project has any errors, but you don't want to
waste time installing the app.
Sometimes, mainly when you have Swift and C on the same project, the compiler
caches the object les wrongly, so the best solution would be to clean everything
up and recompile again. To clean your entire project, use the command + shift + K
combination. Cleaning is a fast process, nevertheless, you have to remember that
afterward you need to rebuild your project, which might take a while.
If you want to build your product and run it, you have two options. The rst is
command + R that compiles your project if it is necessary and installs it on the device
or simulator; this combination is equivalent to pressing play on the left-hand side of
the toolbar. The second option is control + command + R, which installs the last build
but doesn't rebuild the project; it is very handy when your project takes a long time
to compile and you just want to reinstall it again for testing.
Now, let's learn some key combinations that will affect Xcode, visually speaking.
On the left-hand side, we have the Navigator. As you know, here is where you can
access the project les, the search results, and the compilation status. The following
screenshot shows a sample of the Navigator:
Chapter 1
[ 3 ]
If you need more visual space, you can hide the Navigator area with command + 0, or
you can show this area using the same combination. It is very useful when you have
a small screen like a MacBook screen and you need to work with the interface builder
or Playground.
As you can see, there is a bar on the top (called the Navigator bar), which allows
you to access different sections of the Navigator. You can click on each icon or
you can save some time by pressing command + a number from 1 to 8, 1 being the
project navigator (folder icon), 2 the symbol navigator, and so on till 8, which is the
report navigator.
Every Navigator section has a text eld at the bottom to lter the content that is
being displayed on the Navigator. You can reach this text eld very fast by using
the command + option + J combination. So, based on the previous combination, when
you need to access a le, you can go to the project navigator by pressing command + 1
followed by command + option + J.
To nish with the Navigator area, you should know that you have a shortcut to go to
the project navigator and highlight the current le, it is command + shift + J.
www.allitebooks.com
剩余275页未读,继续阅读
vanridin
- 粉丝: 108
- 资源: 1188
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 十种常见电感线圈电感量计算公式详解
- 军用车辆:CAN总线的集成与优势
- CAN总线在汽车智能换档系统中的作用与实现
- CAN总线数据超载问题及解决策略
- 汽车车身系统CAN总线设计与应用
- SAP企业需求深度剖析:财务会计与供应链的关键流程与改进策略
- CAN总线在发动机电控系统中的通信设计实践
- Spring与iBATIS整合:快速开发与比较分析
- CAN总线驱动的整车管理系统硬件设计详解
- CAN总线通讯智能节点设计与实现
- DSP实现电动汽车CAN总线通讯技术
- CAN协议网关设计:自动位速率检测与互连
- Xcode免证书调试iPad程序开发指南
- 分布式数据库查询优化算法探讨
- Win7安装VC++6.0完全指南:解决兼容性与Office冲突
- MFC实现学生信息管理系统:登录与数据库操作
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功