iOS开发笔记 5、开发工具Xcode,Inteface Builder

简介: 开发工具使用Mac的安装盘或从apple站点下载 Xcode 开发代码使用 扩展名的分类 application delegate 需要处理的内容 ƒAt launch time, it must create an application’s windows and display them to the user.

开发工具使用Mac的安装盘或从apple站点下载

Xcode

开发代码使用

扩展名的分类

image

application delegate

需要处理的内容

ƒ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.

建立的各种项目Template

Ø 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 used so far.

Ø A View-Based Application has a hair more functionality. It includes 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 Application creates 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 Application sets 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 Application defines 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 Application is another minimalistic application. Its main difference from the Window-Based Application is that it includes GL frameworks, sends the glView messages to get it started, and otherwise sets certain GL properties.

 

Interface Builder

开发界面使用的工具

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.

IBOutlet provides a link to an Interface Builder–created object

An IBAction is 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.

如:

@property (nonatomic, retain) IBOutletUIWindow *window;

- (IBAction)changeSlider:(id)sender;

image

资源文件:Resources

Creating connection

image

@interface webimageAppDelegate :NSObject<UIApplicationDelegate> {

UIWindow *window;

IBOutletUIWebView *myWebView;

}

@property (nonatomic, retain) IBOutletUIWindow *window;

- (void) refreshQuote;

@end

 

详细的操作和问题可以根据随软件带的帮助查看

相关文章
|
1月前
|
API 数据安全/隐私保护 iOS开发
利用uni-app 开发的iOS app 发布到App Store全流程
利用uni-app 开发的iOS app 发布到App Store全流程
88 3
|
3月前
|
存储 iOS开发
iOS 开发,如何进行应用的本地化(Localization)?
iOS 开发,如何进行应用的本地化(Localization)?
122 2
|
3月前
|
存储 数据建模 数据库
IOS开发数据存储:什么是 UserDefaults?有哪些替代方案?
IOS开发数据存储:什么是 UserDefaults?有哪些替代方案?
39 0
|
3月前
|
安全 编译器 Swift
IOS开发基础知识: 对比 Swift 和 Objective-C 的优缺点。
IOS开发基础知识: 对比 Swift 和 Objective-C 的优缺点。
93 2
|
1月前
|
Android开发 iOS开发 开发者
轻松实现 UniApp Xcode 上传 IPA 无需 Mac,appuploder 一键上传助你高效开发!
轻松实现 UniApp Xcode 上传 IPA 无需 Mac,appuploder 一键上传助你高效开发!
|
2月前
|
Linux 数据安全/隐私保护 iOS开发
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
如何使用 Xcode 打包导出 IPA 文件并进行 iOS 应用内测,无需支付苹果开发者账号费用?
|
8天前
|
API 定位技术 iOS开发
IOS开发基础知识:什么是 Cocoa Touch?它在 iOS 开发中的作用是什么?
【4月更文挑战第18天】**Cocoa Touch** 是iOS和Mac OS X应用的核心框架,包含面向对象库、运行时系统和触摸优化工具。它提供Mac验证的开发模式,强调触控接口和性能,涵盖3D图形、音频、网络及设备访问API,如相机和GPS。是构建高效iOS应用的基础,对开发者至关重要。
12 0
|
23天前
|
开发工具 Swift iOS开发
利用SwiftUI构建动态用户界面:iOS开发新范式
【4月更文挑战第3天】 随着苹果不断推进其软件开发工具的边界,SwiftUI作为一种新兴的编程框架,已经逐渐成为iOS开发者的新宠。不同于传统的UIKit,SwiftUI通过声明式语法和强大的功能组合,为创建动态且响应式的用户界面提供了一种更加简洁高效的方式。本文将深入探讨如何利用SwiftUI技术构建具有高度自定义能力和响应性的用户界面,并展示其在现代iOS应用开发中的优势和潜力。
|
1月前
|
iOS开发
iOS自动混淆测试处理笔记
iOS自动混淆测试处理笔记
12 0
|
2月前
|
监控 API Swift
用Swift开发iOS平台上的上网行为管理监控软件
在当今数字化时代,随着智能手机的普及,人们对于网络的依赖日益增加。然而,对于一些特定场景,如家庭、学校或者企业,对于iOS设备上的网络行为进行管理和监控显得尤为重要。为了满足这一需求,我们可以利用Swift语言开发一款iOS平台上的上网行为管理监控软件。
200 2