Can I live render a UINavigationBar in Xcode 6? - cocoa-touch

I have successfully used the live rendering feature in Xcode 6 to show a UIView in Interface Builder.
Now I want to use live rendering with a UINavigationBar. I have tried to set it up in IB as I did with a UIView without success.
Is it possible to live render a UINavigationBar in Xcode 6, or am I missing something?

Related

UICollectionView items not showing after migration to Swift 2

After migrating my Xcode 6 project to Xcode 7, only the first UICollectionView in my app renders properly.
When I switch tabs the CollectionView doesn't render properly.
The app worked fine in iOS 8.
Example:
Here is a CollectionView header in the Storyboard.
When I run my app, I am getting a blank view.
Interestingly enough, when I use the View Hierarchy debugger, it
shows that the element in fact does exist.
So it looks like ios9 has a bug when rendering custom cells.
I would suggest creating your custom cells in xibs and then loading them from there.
Make sure to include this in viewDidLoad:
self.collectionView.registerNib(UINib(nibName: "SongCell", bundle: NSBundle.mainBundle()), forCellWithReuseIdentifier: "SongCell")
self.collectionView.registerNib(UINib(nibName: "SongHeader", bundle: NSBundle.mainBundle()), forCellWithReuseIdentifier: "SongHeader")
Make sure you add this line in viewDidLoad of your collectionView controller
self.collectionView!.registerClass(YourCustomMemeClass.self, forCellWithReuseIdentifier: "reuseIdentifier")

iOS8 Set Popover Size In Storyboard

I'm trying to set the popover size of a view controller through the storyboard in iOS8. It should be noted that I'm using Obj-C, not swift, and Xcode6-Beta6.
I read the new documentation on popovers from Apple, and this post here was helpful:
How to present popover properly in iOS 8
When I set the preferredContentSize of the view controller in code before presentation, it works fine and is the correct size. However, when I try to use the storyboard properties, "Popover:Use Explicit Size" and "Simulated Size:Freeform", they don't seem to affect the size of the popover like they did in iOS7 and earlier.
Is there any way to set the size of the popover through the storyboard in iOS8?
Thank you for your time
This seems to be a bug in the Xcode6 Beta; I just got the Xcode6 GM version and all the popovers are the correct size.

UIImagepickerController cameraOverlayView in iOS 5

I am writing an augmented reality app. I can present my UI as an overlay over the UIImagePickerController by adding subviews to its cameraOverlayView. This has worked well all along, but in iOS 5, I can't see any of the subviews of cameraOverlayView.
What gives?

UISegmentedControl in UIToolbar

I'm migrating an App from iOS 4 to iOS 5 and I find myself stuck. Here's my problem:
I have a UIToolbar that has a UISegmentedControl within. Now, with the old App, I used all the methods of UISegmentedControl, like
[switch removeAllSegments];
but this leads to crash in the new iOS 5 because now the UISegmentedControl is automatically converted in UIBarButtonItem.
How can I solve this situation?
This may not best practice. But i think you have to add subview on UIToolbar and in that subview please add segmented controls. May it work for you.

Interface Builder on iOS: how to share UITabBarController in universal app?

If I'm creating a universal iPhone/iPad app, I have two XIBs. One main XIB for each device type.
The iPad version is supposed to get a UISplitViewController as the root controller, the iPhone a UITabBarController.
However, the UITabBarController used on the iPhone is exactly the one I would like to use in the iPad's UISplitViewController as the master controller.
What is the best/cleanest way to achieve it without duplicating the UITabBarController?
Do I add a third XIB that contains nothing but the UITabBarController and then add it programmatically? Or is there a more elegant way using Interface Builder's abilities?
Do I add a third XIB that contains nothing but the UITabBarController and then add it programmatically?
Yes, that's what I'd do. There's no Interface Builder support for something like this.