Note that there are some explanatory texts on larger screens.

plurals
  1. PObutton not displaying in simulator
    primarykey
    data
    text
    <p>Edit re-wrote question:</p> <p>Hi there I'm working on another student's project (taking over) there's no main storyboard, only a viewonctroller.Xib under resources a Viewcontroller.h and .m</p> <p>I'm trying to add new buttons but they aren't displaying. I linked the new buttons to the viewcontroller.h and .m file with no actual code in the code such as</p> <pre><code>-(IBAction)button { empty } </code></pre> <p>in the .h file it's</p> <pre><code> IBOutlet UIButton *button; </code></pre> <p>The button's not displaying in the simulator however, Also the former student has every button in the app displayed in the same window and just uses the setHidden function to distinguish between menu's in game. I thought that maybe the button was just behind other buttons but when I go to editor-> send to front the option is grayed out.</p> <pre><code> edit Sample code of ViewController.H #import &lt;UIKit/UIKit.h&gt; #import &lt;AVFoundation/AVFoundation.h&gt; #import &lt;QuartzCore/QuartzCore.h&gt; // Game Center -- ignore and or delete #import &lt;GameKit/GameKit.h&gt; #import "GameCenterManager.h" @interface SideWinderViewController : UIViewController &lt;AVAudioPlayerDelegate, /*ADBannerViewDelegate,*/ UIActionSheetDelegate, GKLeaderboardViewControllerDelegate, GKAchievementViewControllerDelegate, GameCenterManagerDelegate&gt; { // Game Center GameCenterManager *gameCenterManager; int64_t currentScore; NSString* currentLeaderBoard; IBOutlet UILabel *currentScoreLabel; // End Game Center IBOutlet UIImageView *ballpng; IBOutlet UILabel *displaycredit2; IBOutlet UILabel *displaycredits; IBOutlet UIButton *easy; IBOutlet UIButton *medium; IBOutlet UIButton *hard; IBOutlet UILabel *displayhighscore; IBOutlet UILabel *Howtoplay; IBOutlet UIButton *back; IBOutlet UIButton *info; IBOutlet UIButton *playbutton_mainmenu; IBOutlet UIImageView *winder1; IBOutlet UIImageView *socket1; IBOutlet UIImageView *wheelcontrol2; IBOutlet UILabel *seconds; IBOutlet UILabel *scoreLabel; IBOutlet UIButton *Restart; IBOutlet UIButton *HIGHSCORE; IBOutlet UIButton *pausebutton; IBOutlet UIButton *resumebutton; IBOutlet UIButton *gameStartButton; IBOutlet UIImageView *mainmenu; IBOutlet UIButton *credits; IBOutlet UIButton *returnt </code></pre> <p>sample code for .m</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "SideWinderViewController.h" #import &lt;QuartzCore/QuartzCore.h&gt; #import "Ball.h" #import &lt;AVFoundation/AVAudioPlayer.h&gt; // Game Center -- ignore and or delete #import "AppSpecificValues.h" #import "GameCenterManager.h" // End Game Center @implementation SideWinderViewController -(void)viewDidLoad { [Restart setHidden:NO]; </code></pre> <p>...</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.
 

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