官术网_书友最值得收藏!

Developing your first iOS app

Developing the Hello World iOS app should be very simple. Perform the following steps and in few minutes, you will be able to see your first iOS app running:

  1. Start Xcode from your OS X. It is just as easy as clicking on the Xcode icon.
  2. Select Create a new Xcode project and choose the Single View Application project as shown in the following screenshot:
  3. Provide details such as the name of your application. Here, let's say Hello World:
  4. Select the location of your choice to save the project files. If you are not sure, you can simply select the Desktop location to save the files.
  5. Now, you are all set to develop your iOS app. As shown in the following screenshot, on the left side is the navigation bar. It has all the files that are used in the project. The central area is the actual editorial area, where we will design the view of app and write the backend code. The right-hand side of the area is the utility area.
  6. Select the Main.storyboard file from the left-hand side and choose the Label object from list of objects provided on the right-hand side. Refer to the following screenshot:
  7. Edit the text in labels as you wish and select the run option from the left-hand side of the toolbar that has the play icon, which can be seen in the following screenshot:
  8. Congratulations on your very first iOS application! You will be able to see your first running app in iOS Simulator, as follows:

Developing and executing the Hello World application is very simple and straightforward process. If you are familiar with object-oriented concepts, then developing iOS applications should be easy for you.

You can also deploy this app to iDevice to test. Before introducing Xcode 7, you need to enroll in Apple Developer Program for $99 in order to run the app on iDevice. However, with Xcode 7 version, Apple allows you to deploy and run any number of apps with limited capabilities on any of your devices simply by logging in with your Apple ID. However, if you want to distribute your apps among a team or, let's say, you are an iOS security trainer and need to distribute your vulnerable apps sample among your students, you will have to enroll for the Apple Developer Program. You can visit https://developer.apple.com/programs/enroll/ for more information.

Once you have the provision profile, you are ready to run the app on iDevice. You can also download this Xcode project from online supporting files and run this app with one click.

主站蜘蛛池模板: 新龙县| 江安县| 平顺县| 苏尼特左旗| 清流县| 泽州县| 高陵县| 社旗县| 噶尔县| 呼和浩特市| 探索| 郯城县| 南华县| 慈溪市| 宁都县| 瓦房店市| 遂溪县| 平利县| 沙河市| 桦南县| 水城县| 九龙县| 成都市| 蓬安县| 曲靖市| 安陆市| 融水| 延长县| 五大连池市| 永安市| 峨眉山市| 南靖县| 荣昌县| 江北区| 且末县| 靖边县| 大同县| 石林| 合阳县| 南充市| 北安市|