系统规格

iPhone的规格

Each is a 4.7- or 4.8-ounce computing device. Each contains a 620 MHz ARM CPU that has been underclocked to improve battery performance and reduce heat. The iPhone and iPhone 3G each include 128 MB of dynamic RAM (DRAM) and from 4 to 16 GB of Flash memory. The 3GS received an upgrade to 256 MB of RAM as well as a graphics chip enabling it to run OpenGL ES 2.0.

iPad的规格

The iPad weighs in at 1.5 pounds for the wi-fi model and 1.6 pounds for the wi-fi+3G model. Its 9.7-inch LED screen supports a resolution of 1024 x 768 at 132 pixels per inch. The iPad comes in 16 GB, 32 GB, and 64 GB models, all equipped with a 1 GHz A4 custom designed CPU.

知道了这些规格和操作,对软件的布局和操作设计很有用处

iOS的结构

Most of your programming work will be done using the UIKit (UI) or Foundation (NS) frameworks. These libraries are collectively called Cocoa Touch; they’re built on Apple’s modern Cocoa framework, which is almost entirely object-oriented and, in our opinion, much easier to use than older libraries. The vast majority of code in this book will be built solely using Cocoa Touch.

Cocoa Touch It contains the UIKit framework—which is what we spend most of our time on in this book—and the address book UI framework. UIKit includes window support, event support, and userinterface management, and it lets you create both text and web pages. It further acts as your interface to the accelerometers, the camera, the photo library, and devicespecific information.

Media is where you can get access to the major audio and video protocols built into the iPhone and iPad. Its four graphical technologies are OpenGL ES, EAGL (which connects OpenGL to your native window objects), Quartz (which is Apple’s vectorbased drawing engine), and Core Animation (which is also built on Quartz). Other frameworks of note include Core Audio, Open Audio Library, and Media Player.

Core Services offers the frameworks used in all applications. Many of them are data related, such as the internal Address Book framework. Core Services also contains the critical Foundation framework, which includes the core definitions of Apple’s objectoriented data types, such as its arrays and sets.

Core OS includes the kernel-level software. You can access threading, files, networking, other I/O, and memory.

iOS中的类

UIKit framework classe

UI开头的类,如UIView等classes most tightly connected to the devices, including all the graphical classes

Foundation framework classes

NS开头,主要基本数据结构的支持,如数组,字符串,Url, XML解析等

其他

Address Book framework

Address Book UI framework

 

Core Audio framework

Media Player framework

Core Graphics framework

Quartz Core framework

OpenGL ES framework

APNS framework:Push notification services

Map Kit framework: This framework provides you with a simple view that you can add anywhere you want a map to appear.

Store Kit framework: The Store Kit API allows you to sell various items within your application.

Core Foundation framework

Core Location framework

NS CLASS

The NS classes come from Core Services’Foundation framework (the Cocoa equivalent of the Core Foundation framework), which contains a huge number offundamental data types and other objects.

根对象NSObject

THE UI CLASSES

The second broad category contains the UI classes. These come from Cocoa Touch’s UIKit framework, which includes all the graphical objects you’ll be using as well as all the functionality for the iPhone OS’s event model, much of which appears in UIResponder.

Window , View, view controllers

A window is something that spans the device’s entire screen. An application has only one, and it’s the overall container for everything your application does.

A view is the content holder in your application. You may have several of them, each covering different parts of the window or doing different things at different times. They’re all derived from the UIView class. But don’t think of a view as a blank container. Almost any object you use from the UIKit will be a subclass of UIView that features a lot of behavior of its own. Among the major subclasses of UIView are UIControl, which gives you buttons, sliders, and other items with which users may manipulate your program, and UIScrollableView, which gives users access to more text than can appear at once.

A view controller does what its name suggests. It acts as the controller element of the Model-View-Controller triad and in the process manages a view, sometimes called an application view. As such, it takes care of events and updating for your view.

对象创建

idnewObject = [[objectClassalloc] init];

常见的子类重写init方法

- (id)init

{

if (self = [super init]) {

// Instance variables go here

}

return self;

}

带参数的初始化方法

[[UITextViewalloc] initWithFrame:textFieldFrame];

一个特殊的方法:Interface Builder中使用

initWithCoder:

工厂方法:

[UIButtonbuttonWithType:UIButtonTypeRoundedRect];

转载于:https://www.cnblogs.com/greywolf/archive/2012/12/13/2815584.html

iOS开发笔记 3、iOS基础相关推荐

  1. IOS开发笔记2-C语言基础复习

    转载请标明出处: http://blog.csdn.net/hai_qing_xu_kong/article/details/53439812 本文出自:[顾林海的博客] 前言 在正式进入ios开发前 ...

  2. IOS开发笔记3-C语言基础复习

    转载请标明出处: http://blog.csdn.net/hai_qing_xu_kong/article/details/53453499 本文出自:[顾林海的博客] 前言 前篇笔记记录了变量与类 ...

  3. IOS开发笔记4-C语言基础复习

    转载请标明出处: http://blog.csdn.net/hai_qing_xu_kong/article/details/53453520 本文出自:[顾林海的博客] 前言 变量是与某块数据相关联 ...

  4. iOS开发笔记-两种单例模式的写法

    iOS开发笔记-两种单例模式的写法 单例模式是开发中最常用的写法之一,iOS的单例模式有两种官方写法,如下: 不使用GCD #import "ServiceManager.h"st ...

  5. IOS开发-TableView表视图基础

    表视图在IOS中的应用非常广泛,常用于展示显示数据列表. 在工具组中包含了Table View 和Table View Cell 每个表示图都是UITableView的一个实例,每个可见行都是UITa ...

  6. IOS开发笔记之推广安装(用网页判断是否安装App)

    IOS开发笔记之推广安装(用网页判断是否安装App) 在做App推广的时候,我们经常会用到网页链接下载,亦或是一张二维码,最常见的做法就是将App在iTunes中的下载链接嵌入,当用户扫描或者点击网页 ...

  7. iOS开发中正则表达式的基础使用

    正则表达式?什么是正则表达式? 百度百科给出的解释是这样的:正则表达式使用单个字符串来描述.匹配一系列符合某个句法规则的字符串. 根据我的学习,我理解的正则表达式是:一个字符串,这个字符串用来描述我们 ...

  8. [绍棠] iOS开发中正则表达式的基础使用

    正则表达式?什么是正则表达式? 百度百科给出的解释是这样的:正则表达式使用单个字符串来描述.匹配一系列符合某个句法规则的字符串. 根据我的学习,我理解的正则表达式是:一个字符串,这个字符串用来描述我们 ...

  9. linux 股票指南针,IOS开发入门之ios指南针

    本文将带你了解IOS开发入门之ios指南针,希望本文对大家学IOS有所帮助 参考http://blog.sina.com.cn/s/blog_4a37054201013nhr.html 可运行的代码如 ...

  10. iOS开发UI篇—IOS开发中Xcode的一些使用技巧

    iOS开发UI篇-IOS开发中Xcode的一些使用技巧 一.快捷键的使用 经常用到的快捷键如下: 新建 shift + cmd + n     新建项目 cmd + n             新建文 ...

最新文章

  1. CMAKE_CURRENT_SOURCE_DIR
  2. 在数据中心中使用光缆颜色代码的重要性
  3. [Android开发] 启程
  4. SpringBoot中实现批量文件上传
  5. linux网络编程(二)高并发服务器
  6. 2016年CCF第七次测试 俄罗斯方块
  7. CSS三角制作(HTML、CSS)
  8. 为什么索引可以让查询变快?终于有人说清楚了!
  9. REHL 5.4 下编译安装LNMP(上)
  10. 天地图卫星地图_一起看地图谷歌地图高清卫星地图在线_世界这么大,用地图去看看!...
  11. luogu P3332 [ZJOI2013]K大数查询
  12. Arduino相关函数
  13. 计算机二级成绩划分标准,计算机二级成绩划分标准
  14. SAP UD取消处理合订本
  15. 安卓投屏大师TC DS如何把手机声音传输到电脑教程
  16. v5服务器装系统,HIPAA海鲅V5s笔记本一键u盘装系统win10教程
  17. oracle11gwin8,win8_oracle11g_64位连接32位PLSQL_Developer
  18. 【矩阵论】01——线性空间——基本概念
  19. 真假PSP的一些鉴别方法~~希望对准备入手PSP的玩友有帮助!!
  20. SQL Server安全(4/11):许可(Permissions)

热门文章

  1. linux目录详解i-node,i-node节点与链接
  2. Java中使用BigDecimal进行浮点数精确计算 超大整数 浮点数等计算 没有数位限制
  3. SpringClound介绍
  4. Django讲课笔记03:创建Django项目
  5. 安卓学习笔记11:常用布局 - 网格布局
  6. 无心剑英译林清玄《永恒》
  7. wifi传输信息需要连接服务器,基于近场通信的WiFi传输连接方案.pdf
  8. c++ namespace_c++语法2、c执行命名空间输入输出
  9. Intel Sandy Bridge/Ivy Bridge架构/微架构/流水线 (10) - 乱序引擎概述
  10. C++:编译实验之递归下降分析器