摘要:
一、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 阅读全文
摘要:
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 阅读全文