摘要:
一、UILabel(1)初始化UILabel<span style="color:#000000;">UILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ];scoreLabel.textAlignment = UITextAlignmentCenter;scoreLabel.text = @"我是Tiger-小老虎";scoreLabel.textColor = [U 阅读全文
posted @ 2012-10-16 15:58
威猛的小老虎
阅读(236)
评论(0)
推荐(0)
摘要:
1.创建并初始化创建UITextView的文件,并在.h文件中写入如下代码:#import <UIKit/UIKit.h>@interface TextViewController : UIViewController <UITextViewDelegate>{ UITextView *textView;}@property (nonatomic, retain) UITextView *textView;@end在.m文件中初始化这个textview,写入代码如下:self.textView = [[[UITextView alloc] initWithFrame:s 阅读全文
posted @ 2012-10-16 15:53
威猛的小老虎
阅读(1240)
评论(0)
推荐(0)
浙公网安备 33010602011771号