Note that there are some explanatory texts on larger screens.

plurals
  1. POTable and normal view inside of Tab Bar. Cannot see text on Bars
    primarykey
    data
    text
    <p>I am attempting to create an app where there is a tab bar on the bottom, and the first tab is supposed to be labeled "Bets" and the second is to be labeled "Settings". However, I attempted to change it in IB but it seems as though something is blocking the text from being seen, although you can see the bar and buttons at the bottom</p> <p>DollarBetAppDelegate.h</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "User.h" @interface DollarBetAppDelegate : NSObject &lt;UIApplicationDelegate, UITabBarControllerDelegate&gt; { UIWindow *window; UITabBarController *tabBarController; UINavigationController *navController; User *main; } @property (nonatomic,retain)User *main; @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet UITabBarController *tabBarController; @end </code></pre> <p>DollarBetAppDelegate.m</p> <pre><code>#import "DollarBetAppDelegate.h" #import "BetsViewController.h" #import "SettingsViewController.h" #import "User.h" #import "Bet.h" @implementation DollarBetAppDelegate @synthesize window; @synthesize tabBarController; @synthesize main; #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. main = [[User alloc]init]; Bet *bet; bet = [[Bet alloc]init]; NSLog(@"bet.betDesc = %@ \n", bet.betOwner); [main.betArray addObject:(Bet*)bet]; // Add the tab bar controller's view to the window and display. BetsViewController *bvc = [[BetsViewController alloc] init]; SettingsViewController *svc = [[SettingsViewController alloc]init]; bvc.mainUser = main; navController = [[UINavigationController alloc] initWithRootViewController:bvc]; [bvc release]; tabBarController.viewControllers = [NSArray arrayWithObjects:navController, svc, nil]; [navController release]; [svc release]; [self.window addSubview:tabBarController.view]; [self.window makeKeyAndVisible]; return YES; } #pragma mark - #pragma mark Memory management - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { /* Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. */ } - (void)dealloc { [tabBarController release]; [window release]; [super dealloc]; } @end </code></pre> <p>This is the end result when compiled</p> <p><a href="http://i55.tinypic.com/2zduf7c.png" rel="nofollow">http://i55.tinypic.com/2zduf7c.png</a></p> <p>If any other files are needed, let me know.</p> <p>I appreciate any input.</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