Кроме того, я хотел бы, чтобы этот UITextView с текстовым файлом в XXX.txt.It отлично работает в iOS6, но контент не отображается в UIAlertview в iOS7. мой код приведен ниже: -Как вставить UITextView в UIAlertview в iOS
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];
Мне не нужна Третья сторона –
@ Anbu.Karthik Тогда вы не можете реализовать. –
любая другая идея, если это возможно. –