Wie stelle ich im Storyboard Verbindungen mit AppDelegate her ?

Dylans Ghost

Dylans Ghost

Aktives Mitglied
Thread Starter
Dabei seit
25.09.2012
Beiträge
110
Reaktionspunkte
2
Hallo,
seit dem letzten Upgrade bin ich gezwungen, das UI mit einem Storyboard zu beginnen.

In appDelegate :
Code:
_mainStoryboard = [NSStoryboard storyboardWithName:@"Main" bundle: nil];
Wie bekomme ich nun Zugriff auf den View ?

Uwe
 
Schau mal hier:
https://developer.apple.com/documentation/uikit/uistoryboard
https://developer.apple.com/documen...oard/1616213-instantiateinitialviewcontroller

Every storyboard file must have an initial view controller that represents the starting point for the corresponding user interface. For an application’s storyboard, this is usually the first screen presented to the user at launch time. You designate the initial view controller in Interface Builder when configuring the storyboard file.

Typically, you use this method only when transitioning to the initial view controller in a different storyboard file. For your application’s main storyboard file—that is, the storyboard file specified in the application’s Info.plist file using the UIMainStoryboardFile key—the initial view controller is loaded and presented automatically.

This method creates a new instance of the initial view controller each time you call it.
 
Ich habe inzwischen gelesen, dass ich 8.1 das Storyboard abwählen kann und dann mit 8.3 arbeiten kann.
Ausserdem habe ich gelesen, dass es mit Storyboard + git Probleme geben kann.

Aber danke für deine Antwort,
Uwe
 
Zurück
Oben Unten