Note that there are some explanatory texts on larger screens.

plurals
  1. POLoad a view .xib in MainWindow.xib
    primarykey
    data
    text
    <p>It`s probably a very silly mistake, but I've spent over 4 days looking for a solution for this.</p> <p>It is very simple, I´ve got my MainView.xib and a view called FirstViewController (h/m/xib).</p> <p>In MainWindow.xib I add a UIViewController and change the class name to FirstViewController and set the Nib name also (altouhg I've tried both ways).</p> <p>I guess it has to do something with outlets, but I can`t really tell, as I am a newbie developing for iOS, any help wil REALLY help a lot.</p> <p>Im using XCode 3.2 and interface builder, with SDK 4.3</p> <p>AppDelegate</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import &lt;CoreLocation/CoreLocation.h&gt; @interface iPadTerritorioV2AppDelegate : NSObject &lt;UIApplicationDelegate&gt; { IBOutlet UIWindow *window; IBOutlet UIViewController *navigationController; NSString *devToken; NSString *matricula; NSString *campus; NSMutableArray *materiasAlumno; //para CCM NSMutableArray *busqDir; //para CCM NSInteger agendaBadgeNumber; NSInteger intramurosBadgeNumber; NSInteger notificacionesBadgeNumber; NSInteger mapaBadgeNumber; NSMutableData *receivedData; NSMutableDictionary *listData; BOOL yaSeHizoElPrimerFetchBadges; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet UIViewController *navigationController; @property (nonatomic, retain) NSString *devToken; @property (nonatomic, retain) NSString *matricula; @property (nonatomic, retain) NSString *campus; @property (nonatomic, retain) NSMutableArray *materiasAlumno; @property (nonatomic, retain) NSMutableArray *busqDir; @property NSInteger agendaBadgeNumber; @property NSInteger intramurosBadgeNumber; @property NSInteger notificacionesBadgeNumber; @property NSInteger mapaBadgeNumber; @property (nonatomic, retain) NSMutableData *receivedData; @property (nonatomic, retain) NSMutableDictionary *listData; @property BOOL yaSeHizoElPrimerFetchBadges; - (void)fetchBadges; @end </code></pre> <p>FirstViewController.h</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "Constants.h" #import "StringDecoding.h" #define kConnectionBadgeNotifications 0 #define kConnectionLogin 1 #define kConnectionDevToken 2 #define kCCMindex 0 #define kCSFindex 1 #define kMTYindex 2 @interface FirstViewController : UIViewController { IBOutlet UISegmentedControl *segmentedCampus; IBOutlet UITextField *usernameField; IBOutlet UITextField *passwordField; IBOutlet UISwitch *remembermeSwitch; IBOutlet UIButton *loginButton; UIActivityIndicatorView *loginIndicator; NSMutableDictionary *listData; NSMutableData *receivedData; NSInteger connectionID; } @property (nonatomic, retain) UISegmentedControl *segmentedCampus; @property (nonatomic, retain) UITextField *usernameField; @property (nonatomic, retain) UITextField *passwordField; @property (nonatomic, retain) UIActivityIndicatorView *loginIndicator; @property (nonatomic, retain) UISwitch *remembermeSwitch; @property (nonatomic, retain) UIButton *loginButton; @property (nonatomic, retain) NSMutableDictionary *listData; @property (nonatomic, retain) NSMutableData *receivedData; @property NSInteger connectionID; - (IBAction)handleNextClick:(id) sender; - (IBAction)backgroundClick; - (IBAction)login: (id) sender; @end </code></pre>
    singulars
    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.
 

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