Note that there are some explanatory texts on larger screens.

plurals
  1. POUITextView not shown on screen
    primarykey
    data
    text
    <p>In my app I habe a view controller that calls several views. All these views are UIViews. That works fine, but not in every case. One of the views that are called has some labels, textfields and two UITextViews. Everything is shown correctly but the UITextViews. The view is called in that way:</p> <pre><code>[[self view] addSubview:tasteView]; //tasteView = [[TasteView alloc] init]; [self setCurrentView:tasteView]; </code></pre> <p>I call the init method of the view to display the UITextViews:</p> <p>EDIT: After a comment of Phillip Mills this was slightly changed! Init isn't called anymore.</p> <pre><code>- (id)init { if (self) { [tv1 setNeedsDisplay]; CGRect frame = tv1.frame; frame.size.height += 1; tv1.frame = frame; } return self; } </code></pre> <p>As I saw that setNeedsDisplay had no effect, I changed the size of the corresponsing frame to force a redraw. Unfortunately that had no effect, too. Btw, the view is initially loaded in the viewDidLoad of the view controller:</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; [self setCurrentView:placeholder]; [self configureView]; wineryView = [self loadWineryView]; wineView = [self loadWineView]; tasteView = [self loadTasteView]; } </code></pre> <p>A method for loading the views looks like this:</p> <pre><code>- (UIView *) loadTasteView { NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:@"TasteView" owner:self options:nil]; UIView *tView; for (id view in nibViews) { if ([view isKindOfClass:[TasteView class]]) { tView = (TasteView*) view; } } return tView; } </code></pre> <p>I do not know why those UITextViews are not shown. Did I forget something? To show really everything, here are the connections that I made in InterfaceBuilder: <img src="https://i.stack.imgur.com/FReZg.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/foLig.png" alt="enter image description here"></p> <p>Does anyone know what I did wrong and can help me? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload