Use didSelectRowAtIndexPath or prepareForSegue method for UITableView?

If you use prepareForSegue:sender:then you won’t have as much to change if you later decide to trigger the segue from some control outside the table view. The prepareForSegue:sender: message is sent to the current view controller, so I’d suggest something like this: – (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Assume self.view is the table view NSIndexPath … Read more

Xcode keeps building storyboard after each keystroke

It is caused by the IB_DESIGNABLE definitions in the source header files. Probably it makes problem only if the header file containing IB_DESIGNABLE is included (even implicitly) to the source file you are currently editing. I did not find a definitive solution how to disable IB_DESIGNABLE and thus compiling the storyboard and the source files … Read more

Creating a reusable UIView with xib (and loading from storyboard)

Note that this QA (like many) is really just of historic interest. Nowadays For years and years now in iOS everything’s just a container view. Full tutorial here (Indeed Apple finally added Storyboard References, some time ago now, making it far easier.) Here’s a typical storyboard with container views everywhere. Everything’s a container view. It’s … Read more

How to create an Empty Application in Xcode without Storyboard

There is no option in XCode6 and above versions for directly creating an Empty Application as in XCode5 and earlier. But still we can create an application without Storyboard by following these steps: Create a Single View Application. Remove Main.storyboard and LaunchScreen.xib (select them, right-click, and choose to either remove them from the project, or … Read more

tech