Note that there are some explanatory texts on larger screens.

plurals
  1. POHorizontal table size changed when remove MainWindow.xib?
    text
    copied!<p><a href="http://www.raywenderlich.com/4723/how-to-make-an-interface-with-horizontal-tables-like-the-pulse-news-app-part-2" rel="nofollow">This tutorial gives you a simple and nice horizontal UITableView</a></p> <p>but when removing MainWindow_iPhone.xib (_iPad) and create <code>UIWindow</code> object programmatically in the app delegate, the horizontal table and contents (image and label) become unstable, its size changed and scroll doesn't work properly. Also, labels become hidden when scroll up. </p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. // self.window = [[UIWindow alloc]ini]; self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. // self.window.contentMode = UIViewContentModeScaleToFill; // self.window.opaque = NO; // self.window.clipsToBounds = NO; // self.window.clearsContextBeforeDrawing = NO;; // self.window.autoresizesSubviews = YES; // self.window.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; ArticleListViewController_iPhone *masterViewController = [[[ArticleListViewController_iPhone alloc] initWithNibName:@"ArticleListViewController_iPhone" bundle:nil] autorelease]; self.navigationController = [[[UINavigationController alloc] initWithRootViewController:masterViewController] autorelease]; self.window.rootViewController = self.navigationController; [self.window makeKeyAndVisible]; return YES; } </code></pre> <p>I already tried all window properties that affect size with no success. If I remove my code and set MainWindow_iPhone as <code>Main Interface</code>, all things work well.</p> <p>Also, I tried the following:</p> <ul> <li>Clean &amp; Build</li> <li>Option &amp; Clean &amp; Build</li> <li>Reset simulator</li> <li>Another version of xCode</li> <li>Another version of Mac os</li> <li>Test on device</li> </ul> <p>What the problem, Do you have any suggestions?</p>
 

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