[Code Note] reads a piece of text and code note
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. m
# Import "RootViewController. h "@ interface RootViewController () @ end @ implementation RootViewController-(id) initWithNibName :( NSString *) bundle :( NSBundle *) handle {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; if (self) {// Custom initialization} return self;}-(void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // initialize textView [self addTextView];} # pragma-mark-functions-(void) addTextView {UITextView * textView = [[UITextView alloc] initWithFrame: CGRectMake (0,100,320,200)]; textView. backgroundColor = [UIColor redColor]; textView. textAlignment = condition; NSString * str = [NSString condition: [[NSBundle mainBundle] pathForResource: @ "brainstorming" ofType: @ "txt"] encoding: NSUTF8StringEncoding error: nil]; textView. text = str; [self. view addSubview: textView];}-(void) didReceiveMemoryWarning {[super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated .}