Wie Legen Sie die UITextView in uialertview-Objekt in iOS

Außerdem möchte ich diese UITextView mit der text-Datei in XXX.txt.Es funktioniert gut in iOS6, aber der Inhalt erscheint nicht auf der uialertview-Objekt in iOS7. mein code ist wie unten angegeben:-

UITextView *tosTextView = [[UITextView alloc]initWithFrame:CGRectMake(12, 48, 260, 140)];

NSString *path = [[NSBundle mainBundle] pathForResource:@"TJTermsof Service"
                                                 ofType:@"txt"];
NSString *content = [NSString stringWithContentsOfFile:path
                                              encoding:NSUTF8StringEncoding
                                                 error:NULL];
[tosTextView setText:content];

tosTextView.textColor=[UIColor blackColor];
tosTextView.font = [UIFont fontWithName:@"LuzSans-Book" size:17];
tosTextView.editable = NO;
customAlert = [[UIAlertView alloc]initWithTitle:@" TOS \n\n\n\n\n\n " message:@"" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"I Agree",nil];



[customAlert addSubview:tosTextView];

[customAlert show];
InformationsquelleAutor Anbu.Karthik | 2013-12-23
Schreibe einen Kommentar