IOS Development notes 5. Development Tool xcode and inteface Builder

Source: Internet
Author: User

Development tools use Mac installation disks or download from the apple site

Xcode

DevelopmentCodeUse

Extension Classification

Application delegate

Content to be processed

Snapshot at launch time, it must create an application's windows and display them to the user.

L it must initialize your data.

L it must respond to "Quit" requests.

L it must handle low-memory warnings.

Various project templates created

ØA window-based application, As you 've seen, is entirely minimalist. You need to create a default uiview for your application before you can do anything. That's what you 've ve used so far.

ØA view-based applicationHas a hair more functionality. It includes des a basic view controller that allows you to autorotate content. you'll use it in chapter 5 (and most of the time thereafter ).

ØA tab bar applicationCreates a tab bar along the bottom that allows you to switch between multiple views. The template does this by creating a tab bar controller and then defining what each of its Views looks like.

ØA navigation-based applicationSets you up with a navigation controller, a nav bar along the top, and a table view in the middle of the page so you can easily build hierarchical applications.

ØA utility applicationDefines a flip-side controller that has two pages, the first with an info button that allows you to call up the second page.

ØAn OpenGL ES ApplicationIs another minimalistic application. Its main difference from the window-based application is that it has des GL frameworks, sends the glview messages to get it started, and otherwise sets certain GL properties.

Interface Builder

Tools used in the development interface

Iboutlets and ibactions

In order for interface builder-created objects to be useful, xcode must be able to access their properties and respond to actions sent to them. This is done with iboutlets and ibactions.

IboutletProvides a link to an interface builder-created object

AnIbactionIs a message that's executed when a specific action is applied to an interface buildercreated object, such as when a slider moves or a button is clicked.

For example:

@ Property (nonatomic, retain) iboutletuiwindow * window;

-(Ibaction) changeslider :( ID) sender;

Resource file: Resources

Creating connection

@ Interface webimageappdelegate: nsobject <uiapplicationdelegate> {

Uiwindow * window;

IboutletUiwebview * mywebview;

}

@ Property (nonatomic, retain) iboutletuiwindow * window;

-(Void) refreshquote;

@ End

 

You can view detailed operations and problems with the help of the software.

Related Article

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.