am reading "SAMS Teach Yourself iPad Application Development in 24 hours", in this book it got a section on tabbars (UITabBarController) where you need to link the UITabBarController component in Interface Builder to the application delegate via the Document window but in my case in XCode 4.5 (iOS 6) there is no application delegate listed in Interface Builder in Xcode... Am I doing something wrong? Thanks
I supose the book is out of date, xcode changed a lot with the 4.2 version.
I recomend you the 3rd edition of iOS Programming: big nerd ranch guide, it is updated.
Or look for an updated version of your book, if it's an ebook, they maybe send you the new version for free.
Related
I have an android background, but am just learning how to build iPhone apps using swift. I am using the book Beginning iPhone Development with Swift 2: Exploring the iOS SDK.
Problem is that it refers to Buttons and such being in the Object Library and I don't have anything in my object library. I have clicked on the View as instructed.
I have a newly installed MacBook and am running Xcode 8.1, which is newer than the book's directions. It refers to iOS UIkit, but I don't know how to install this.
I did Single View Application under iPhone to get where I am. Can anyone point me to what I need to do? I am brand new to the Apple world entirely.
Aha! In the main window, I clicked on the storyboard and that allowed the Object Library to contain the view items, including buttons.
So, click on the storyboard in the main window, then click on the view in the IB.
I recently discovered the new "container view" in XCode 4.5 Developer Preview and wondered whether this is the proper way to use it:
Have a look at the Stanford IOS 6 programming course, 2013, on iTunes U. Paul Gregory, a superb presenter, gives a very good lecture covering the use of Container controls.
Iam using Xcode 4.4 on Mountain Lion and unable to do any IB related tasks.
Dragging a control to a xib file, connecting an IBoutlet to code, whatever I do , Xcode crashes
Any clues will be appreciated
Your situation sounds remarkably similar to what happened to me yesterday:
Xcode Interface Builder crashes when I edit storyboard
It would be worth looking at the console log to see if the reports are the same. If they are, experiment with the 'Use auto layout' checkbox.
If I want to Create project without storyboard in Xcode 4.3
and use only ARC feature from Xcode.
How can we create app without story board as we dont want Navigation controller,
in app and use addsubview as we use to code in earlier versions.
Does app coded in Xcode 4.3 can be deployed on iOS 4.0 ,iOS 4.3, or only works with iOS 5
Please let me know..
Thanks
To my strong dismay, Apple removed the "Use Storyboards" checkbox in Xcode 5. Every project gets created with a dreaded UIStoryboard. I wrote a tool that converts Xcode 4's project templates to Xcode 5, so you can once again create projects with or without storyboards. You can find it here on GitHub: https://github.com/jfahrenkrug/Xcode4templates
When you create a new project there is an option to "Use Storyboards". Don't tick that.
Do tick the "Use Automatic Reference Counting" box.
Apps developed in Xcode 4.3 can target platforms below 5.0, it's up to you to ensure that you include / exclude the appropriate features.
I am just starting out learning to build interfaces, but the book I am following is a little dated and it says that Xcode should create it for me with my new project, however it didn't. So now I need to link my buttons to my app delegate, but I can't because it isn't showing up when I right click on my buttons. And yes, I did define my methods and instance variables.
Xcode very much will create a MainWindow.xib if you choose Cocoa Application as the project type. Check to make sure you aren't either creating an iOS project or a command-line tool... both can be easy to accidentally select when you are just starting to learn.
(FYI, I just verified in Xcode 4.2.1 that a MainWindow.xib was created for me.)