Stanford CS193p
文章平均质量分 78
失主
这个作者很懒,什么都没留下…
展开
-
1 iOS概述,MVC,Objective-C(1)
先决条件面向对象的术语类(对象的描述/模板) Class (description/template for an object)实例(类的表现形式) Instance (manifestation of a class) 消息(发送到对象,使其行动) Message (sent to object to make it act) 方法(通过一个翻译 2014-05-18 13:40:20 · 349 阅读 · 0 评论 -
2 Xcode5(5)
翻译 2014-05-18 20:14:22 · 217 阅读 · 0 评论 -
3 Objective-C(1)
翻译 2014-05-19 11:38:24 · 246 阅读 · 0 评论 -
3 Objective-C(2)
翻译 2014-05-19 12:06:03 · 244 阅读 · 0 评论 -
3 Objective-C(3)
待续翻译 2014-05-19 12:34:43 · 264 阅读 · 0 评论 -
3.5 复习课
现在你应该知道的事...MVCXcode基础的Objective-CMVCModel是独立于UI的Cards and Decks, not UIButtons and UILabelsView是(目前为止)完全通用的UI元素UIButtonUILabelController为视图解释模型(反之亦然)翻译 2014-05-19 14:25:31 · 327 阅读 · 0 评论 -
4 Foundation和带属性的字符串(1)
创建对象多数时候,我们创建对象以alloc和init... NSMutableArray *card = [[NSMutableArray alloc] init]; CardMatchingGame *game = [[CardMatchingGame alloc] initWithCardCount:12 usingDeck:d];或者以翻译 2014-05-19 14:36:16 · 302 阅读 · 0 评论 -
4 Foundation和带属性的字符串(2)
Foundation框架NSObjectiOS SDK中机会是每个对象的基类实现前面所讨论的内省方法- (NSString *)description是一个实用的重写方法 (它是NSLog( )中的%@).例如...NSLog(@“array contents are %@”, myArray);%@替换了调用[myArray description翻译 2014-05-19 15:25:05 · 349 阅读 · 0 评论 -
5 视图控制器生命周期
UITextView像UILabel,但是是多行的,可选/编辑,可以滚动等通过NSMutableAttributedString设置它的文本与属性在UITextView中取得NSMutableAttributedString代表文本@property (nonatomic, readonly) NSTextStorage *textStorage;NSTextS翻译 2014-05-20 10:39:46 · 392 阅读 · 0 评论 -
1 iOS概述,MVC,Objective-C(2)
3 Objective-CC的严格父集 Strict superset of C增加了类语法,方法等 Adds syntax for classes, methods, etc.A few things to “think differently” about (e.g. properties, dynamic binding)翻译 2014-05-18 16:12:10 · 342 阅读 · 0 评论 -
2 Xcode5(1)
翻译 2014-05-18 18:48:19 · 306 阅读 · 0 评论 -
2 Xcode5(3)
翻译 2014-05-18 19:18:13 · 254 阅读 · 0 评论 -
2 Xcode5(4)
翻译 2014-05-18 19:50:21 · 354 阅读 · 0 评论 -
2 Xcode5(6)
翻译 2014-05-18 20:32:35 · 233 阅读 · 0 评论 -
2 Xcode5(7)
翻译 2014-05-18 21:01:22 · 282 阅读 · 0 评论 -
1 iOS概述,MVC,Objective-C(5)
PlayingCardDeck类翻译 2014-05-18 17:52:15 · 270 阅读 · 0 评论 -
1 iOS概述,MVC,Objective-C(3)
Deck类翻译 2014-05-18 16:35:46 · 291 阅读 · 0 评论 -
2 Xcode5(2)
翻译 2014-05-18 19:06:31 · 287 阅读 · 0 评论 -
1 iOS概述,MVC,Objective-C(4)
PlayingCard类翻译 2014-05-18 17:21:03 · 339 阅读 · 0 评论 -
4 Foundation和带属性的字符串(3)
颜色UIColor表示颜色的对象初始化为了基于RGB,HSB,甚至图案(UIImage)而创建的颜色一小撮“标准”颜色有类方法(如[UIColor greenColor])一些“系统”的颜色也有类的方法(如[UIColor lightTextColor])字体UIFont在IOS 7中获得正确的字体非常重要通过询问翻译 2014-05-19 17:12:49 · 535 阅读 · 0 评论