iOS-Develop


2023年12月16日发(作者:邯郸市教育考试院网站)

一、iOS开发基础

1.iOS

iOS包含在iPhone和iPod touch上运行本地应用程序所需的操作系统和技术基础。iPhone跟Mac OS X有共同的基础构架和底层技术。但是iOS是为了满足移动环境而设计的,用户需要和一般的环境下略有区别。例如多点触摸和加速度传感器支持。

2.iOS开发环境

Mac Computer with Intel cpu

Xcode and iOS SDK

IDP(iPhone Develop Program) 个人/企业

开发规范及注意事项

证书:Develop/Distribute Certification WWDR

苹果推送服务:APNs (SSL Certification)

IDP Portal:Add App ID/Devices/Provision

调试及设备上测试:Debug & Test on device

XCode/IB/ObjectC/Cocoa

开发模式:MVC/Target-Action/Delegate

3.Object-C

支持C的基本语法.h .m .mm

#import

类 default:protected

@interface MyClass : NSObject

{

int count;

}

-(id) initWithString:(NSString*) aName;

+(MyClass*) createMyClassWithString:(NSString*) aName;

@end

协议

@protocol MyProtocol

-(void) myProtocolMethod;

@end

 Category

对现有class加入新功能,无需继承之

建立私有方法十分有用

@implement MyClass (Private)

@end

 Posing

继承一个class,全面性地扮演(pose)这个super class。

BaseClass * base;

[ExtendClass poseAsClass :[BaseClass class]];

内存管理

谁拥有所有权谁负责释放;

nil

AutoReleasePool

线程

NSThread class:

 Use the detachNewThreadSelector:toTarget:withObject: class

method to spawn the new thread.

 Create a new NSThread object and call its start method. (Supported

only in iOS and Mac OS X v10.5 and later.)

Operation object An instance of the NSOperation class.

Operation objects wrap the code and data associated with a task into an

executable unit.

NSOperation queue An instance of the NSOperationQueue class.

Operation queues manage the execution of operation objects.

RunLoop

线程间通讯

performSelectorOnMainThread:@selector(:) withObject: waitUntilDone:

NSNotificationCenter

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update)

name:@"update" object:nil]

[[NSNotificationCenter defaultCenter] postNotificationName:@"update" object:nil];

二、PushEmail工程代码说明

1.PushEmailAppDelegate

应用程序代理

2.views 界面视图

startup 启动相关界面

help 帮助相关界面

syssetting 系统设置界面

contact 联系人界面

account 账户相关界面

email 邮件操作相关界面

item

cell

3.identifier

资源ID/常量等定义

4.factory

button工厂

ImageView工厂

label工厂

5.utils

时间工具/MD5工具/图像处理工具

字符串类型判别工具

6.addition

字符串

数组

字典

NSData扩展

NSNavigationConroller扩展

7.manager 数据存储访问管理

附件信息存储

帐户信息存储

邮件数据

联系人数据

文件夹数据

系统设置

数据库连接接口

8.model 数据库存储模型

邮件列表

帐户信息

附件信息

文件夹

联系人

帐户设置属性

互联网邮箱列表

9.network

9.1 socket

正则表达解析工具

接收邮件接口

接收附件接口

发送邮件接口

账户信息访问接口

连接代理(CMPop/CMSmtp)

Socket连接读写接口

Base64编解码接口

帐号配置信息/收发邮件/附件下载等参数信息

9.2 http

9.2.1 ASIHttpReauest

开源的http请求通讯库

9.2.2 json

json解析工具库

9.2.3 xml

xml解析工具库

9.2.4 request

使用http协议的业务接口(eg。既开既通/互联网邮箱等接口)

10 debug

打印debug信息工具类


本文发布于:2024-09-22 17:20:42,感谢您对本站的认可!

本文链接:https://www.17tex.com/fanyi/4922.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:接口   工具   邮件   界面   信息   环境
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议