没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Learn iOS programming. If you know other programming languages such as Python or Java and want the start developing for iOS devices, this is the book for you. You will build 3 apps which will teach you how to get started with programming with cocoa touch framework and the swift programming languages.
资源推荐
资源详情
资源评论
Table of Contents
1 Body Mass Index Calculator
2 Shopping List
3 Driving Route and Distance
Body Mass Index Calculator
1
In this chapter we will build a body mass index calculator app. The user will enter a per-
son’s height and weight and the app will calculate their body mass index. The app will
have two text fields to enter data, a button to calculate the result, and a label to show the
calculated result. The app will look like the following when we are finished.
1
Open Xcode and create a new project.
Select “Single View App” template under iOS project and click Next.
2
Type “Body Mass Index Calculator” for product name. Organization name and identifier
could be anything you want for this tutorial. Keep the language Swift.
Click next, choose a place to save your project and click create.
Once you have created your project open Main.storyboard. From the object library (that’s
on the lower right side) drag two text fields to the storyboard scene. One will be for the
height and the second one will be for the weight.
3
Both height and weight will be numbers not characters so we need to change the key-
board type for each text field that will be used to enter values. Select the first text field, go
to the Attributes Inspector (top right in Xcode) and change Keyboard Type to Number Pad.
Do the same for the second text field.
4
剩余49页未读,继续阅读
资源评论
tlforest
- 粉丝: 27
- 资源: 198
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C#物联订单仓储综合管理系统源码 物联综合管理系统源码数据库 SQL2008源码类型 WebForm
- 2024年最新敏感词库(7万余条)
- java带财务进销存ERP管理系统源码数据库 MySQL源码类型 WebForm
- java制造业MES生产管理系统源码 MES源码数据库 MySQL源码类型 WebForm
- 基于无人机航拍数据实现的三维场景重建python源代码+文档说明+数据集(高分项目)
- 【重磅,更新!】全国2000-2022年植被指数数据(分辨率30m)
- 包含Qt5Core.dll Qt5Gui.dll Qt5Network.dll Qt5Svg.dll Qt5Widgets.dl
- python3.6 get-pip.py
- python期末大作业基于ResNet的人脸表情识别项目源码+数据集+模型文件(高分项目)
- C#大型多门店4S连锁汽车维修保养管理系统源码(带文档)数据库 SQL2008源码类型 WebForm
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功