SKNode
+ (id)node 初始化。
@property(atomic, copy) NSString *name 節(jié)點的命名判呕。
@property(atomic) CGPoint position 節(jié)點在父坐標(biāo)系中的位置尘喝。
@property(atomic) CGPoint zPosition 可視深度磁浇。默認為0.0。
@property (nonatomic) CGPoint anchorPoint 錨點的位置朽褪。默認為(0.5,0.5)置吓。
@property(atomic, retain) NSDictionary *userData 在節(jié)點中存儲自己的數(shù)據(jù)无虚。使用之前,需要初始化衍锚。
UITextView新增內(nèi)容后友题,顯示底部內(nèi)容。
CGFloat x, y;
x = 0;
y = self.textView.contentSize.height - self.textView.frame.size.height;
self.textView.contentOffset = CGPointMake(x, y);
self.textView.layoutManager.allowsNonContiguousLayout = NO;
根據(jù)UIColor獲取RGB的值?
CGFloat r, g, b, a;
[self.normalColor getRed:&r green:&g blue:&b alpha:&a];
?NSLog(@"UIColor colorWithRed:%f green:%f blue:%f",r,g,b);