J'ai une application simple avec un "gros" texte dans un "petit" UITextView inclus dans un UIImageView. Je ne peux pas faire défiler mon texte, et je ne comprends pas pourquoi? S'il n'y a pas UIImageView, le défilement fonctionne.Le défilement ne fonctionne pas dans UITextView inclus dans UIImageView
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UIImage *backImg = [UIImage imageNamed:@"infoScreen.png"];
UIImageView *background = [[UIImageView alloc] initWithImage:backImg];
UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(45, 145, 230, 200)];
textview.text = @"Lorem ipsum dolor [...] deserunt mollit anim id est laborum.";
[background addSubview:textview];
[textview release];
[window addSubview:background];
[background release];
[window makeKeyAndVisible];
return YES;}
Merci.
+1 pour la bonne façon – Vladimir