2011年11月5日 星期六

BOOL in Objective C

not bool , but BOOL
not true or false ,but YES or NO

布林值在Objective C 中的宣告是全大寫的BOOL
不是bool
而且其使用的不是true or false
而是 YES or NO
如下
BOOL isDifferent = YES ;

if (isDifferent)
{
NSLog(@"The isDifferent  is true and the char is %i",isDifferent);
} else
{
NSLog(@"The isDifferent  is false and the char is %i",isDifferent);
}
// YES==1 , NO==2

2011年11月1日 星期二

11 月了 ~期待新的iTunesU 上 stanford CS193p 的教學影片!

根據 Stanford cs193p 的官方網站表示

iTunesU Viewers
The first episodes for this quarter's iOS 5-based incarnation of CS193p should hit iTunesU in early November. Sorry for the delay!
If you are about to start watching CS193p from a past quarter on iTunesU, you might want to wait until the current quarter's videos are posted.
If you are still running on Xcode 3 and iOS 4, last Fall quarter's lectures are still available (as are their associated downloads).


因為iOS 5 發布 加上使用新的 xcode  所以呢 十一月開始期待中阿!!!


官方連結: http://www.stanford.edu/class/cs193p/cgi-bin/drupal/