码迷,mamicode.com
首页 > 其他好文 > 详细

cocoa的一些新变化

时间:2014-07-25 11:26:01      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:ios   cocoa   

cocoa的一些新变化

by 伍雪颖

  NSUserActivity
  NSUserActivity *activity = [[NSUserActivity alloc] 
  		initWithActivityType:@"com.company.somegame.playing"];
  activity.userInfo = @{@"Level":@1,@"Location":@"Start",@"Score":@0};
  activity.title = @"playing some game";
  [activity becomeCurrent];

  @property (weak) id target;

  Swift
  @property NSRect frame;
  var frame : NSRect

  @property (readonly, strong) NSStoryboard *storyboard;
  var storyboard : NSStoryboard! {get}

  @property (copy) NSArray *subviews;
  var subviews : AnyObject[]!

  NSString
  - (BOOL)containsString:(NSString *)str;
  - (BOOL)localizedCaseInsensitiveContainsString:(NSString *)str;


cocoa的一些新变化,布布扣,bubuko.com

cocoa的一些新变化

标签:ios   cocoa   

原文地址:http://blog.csdn.net/rainlesvio/article/details/38096783

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!