Stanford Cource(1)MVC and Object-C
1. IOS Layer
1.1 Core OS
OSX Kernel Power Management
Mach 3.0 Keychain Access
BSD Certificates
Socket File System
Security Bonjour
1.2 Core Services
Collections Core Location
Address Book Net Services
Networking Threading
File Access References
SQLite URL utilities
1.3 Media
Core Audio JPEG, PNG TIFF
OpenAL PDF
Audio Mixing Quartz
Audio recording Core Animation
Video Playback OpenGL ES
1.4 Cocoa Touch
Multi-Touch Alerts
Core Motion Web View
View Hierarchy Map Kit
Localization Image Picker
Controls Camera
2. Tools
Xcode4 Instruments
3. MVC
3.1 Model
what does your application does?
3.2 View
Show your model
3.3 Controller
How your models show on screen
Controller send message to Model
Controller send message to View(outlet)
View talk to Controller(Tareget)
(Will Did Should Delegate)
View do not own the data they display.
View get data source from Controller (Data at, Count)
Model send Notification & KVO to Controller
4. Language Objective-C
Interface
Spaceship.h
#import "vehicle.h"
#import "Planet.h"
@interface Spaceship: Vehicle
//declaration of public method
@property (nonatomic) double topSpeed;
- (void) orbitPlanet:(Planet *) aPlanet
atAltitude:(double)km;
- (void) setTopSpeed:(double)percentSpeedOfLight;
- (double) topSpeed
@end
Implementation
Spaceship.m
#import "Spaceship.h"
@interface Spaceship()
//declaration of private methods
@property (nonatomic, strong) Wormhole *nearestWormhole;
@end
@implementation Spaceship
@synthesize topSpeed = _topSpeed;
@synthesize nearestWormhole = _nearestWormhole;
- (void) setTopSpeed:(double)speed
{
//
_topSpeed = speed;
}
- (double) topSpeed
{
//
return _topSpeed;
}
- (void)orbitPlanet:(Planet *)aPlanet atAltitude:(double) km
{
//put codes here
double speed = [self topSpeed]; // self.topSpeed
if(speed > MAX_RELATIVE) speed = MAX_RELATIVE;
[[self nearestWormhole] travelToPlanet:aPlanet
atSpeed:speed];
}
@end
@property @sythesize generate getter and setter for us.
All property are zero when object are created.
references:
www.stanford.edu
分享到:
相关推荐
StanfordCoreNLP适用于以下情形: 一个具有广泛语法分析工具集成的NLP工具包; 一种广泛应用于生产中的快速、健壮的任意文本注释器; 一个现代化的具有全面高质量的文本分析功能的、定期更新的软件包
斯坦福大学的NLP包,可用于用于BLEU、CIDER、SPICE等指标的计算,以及一些自然语言处理相关内容,使用COCO数据集评价函数必备。
stanford课程-----自然语言处理中的深度学习 课件2-15
斯坦福大学自然语言处理研究组发布的有关自然语言处理的核心jar包,可用于分词等操作
因为文件大小上传的限制,所以文件里只放入了工具包的网盘链接,如果链接失效或者想要邮箱发送,请按照里面的要求发送邮件给里面指定的邮箱
stanford-parser-full-2015-12-09.zip
斯坦福CS108面向对象的系统设计 CS108是斯坦福大学的编程课程,主要研究Java中的面向对象编程。 我还制作了几个小型Android应用程序,例如Tetris,Bunny World,Drawing应用程序等。编程能力和应用程序:Java,MySQL...
stanford-corenlp-3.9.2-models.jar
Stanford-Writing in the Sciences-科学写作课件.rar
stanford大学-大数据挖掘-advertising-19
stanford大学-大数据挖掘-advertising-19.pptx
stanford-corenlp-4.2.2-models-english.jar 包。 下载stanford-corenlp-4.2.2解压后,把这个jar包放到stanford-corenlp-4.2.2里面即可。后面通过路径引用就可以了
stanford-chinese-corenlp-2018-10-05-models.jar 是一个Java包,其中包含了Stanford CoreNLP库的中文语言模型。与英文语言模型类似,中文语言模型提供了一系列自然语言处理功能,例如中文分词、词性标注、命名实体...
StanfordCoreNLP适用于以下情形: 一个具有广泛语法分析工具集成的NLP工具包; 一种广泛应用于生产中的快速、健壮的任意文本注释器;...一个现代化的具有全面高质量的文本分析功能的、定期更新的软件包
StanfordCoreNLP适用于以下情形: 一个具有广泛语法分析工具集成的NLP工具包; 一种广泛应用于生产中的快速、健壮的任意文本注释器; 一个现代化的具有全面高质量的文本分析功能的、定期更新的软件包
pointer-generator(https://github.com/atulkum/pointer_summarizer)训练使用的CNN/Dailymail数据处理工具
stanford-corenlp-full-2018-10-05 (3.9.2版本)