Helloworld for iOS

Source: Internet
Author: User

 

Preface

First iPhoneProgramHelloworld

Ios sdk Introduction

Modify IOS Project Properties

 

Preface

I have always been interested in mobile platforms and companies are interested in groups, So I reported that IOS is a Java app, so Android is not as fresh as IOS. This is the case, no Android interest group is reported by the company... I have been learning IOS for a while. I should record the learning details so that you can help later users. Gradually I found that object C can be understood in many places as Java... Ioser in the company also said that OC is more like Java than C.

This tutorial is based on the iPhone and iPad practice of instructor Guan Dongsheng. After learning this course, I will take a look at the Stanford open class. I believe that the technical problem should not be too big.

It is the best to have a Mac host. It is convenient to install a black apple without it. I am AMD's black apple 10.6.8, xcode4.2, and it is quite easy to use.

1.1 iPhone 1-Hello World

Select new project-> application-> View-based application project type.

Screen design:

Double-click to open the hello_worldviewcontroller file, open the NIB file in interface builder, and enter the screen design window.

1.2 ios sdk Introduction

Ios sdk is a tool for developing iPhone applications. The ios sdk must be installed on Mac OS X. You can use xcode to develop Ios. Different xcode versions correspond to different Ios SDK versions. Different xcode versions require different Mac OS X versions.

"IOS SDK 2.x

"IOS SDK 3.x xcode3.2.3

"IOS SDK 4.X, xcode 3.2.5 or xcode4.2

"IOS SDK 5, xcode4.3

1.3 modify IOS project attributes

There is a project property file under the project directory: HelloiPhone-Info.plist

In this file, we can set the project icon, project internationalization, and other information settings.

Another method for modifying IOS engineering properties is as follows:

To modify the project properties, add the icon properties for the project.

The add icon must be:

Normal display screen: 57x57 default name: icon.png, Retina Display

Display Screen: 114x114, default name: Icon@2x.png.

Modify project compilation attributes:

Because the IOS version changes fast, we need to modify the compilation attribute of the project. You can modify the compilation target and the basic IOS version.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.