How to reliably place built-in UINavigationController UIToolbar on top of iPad view?

It says in the documentation under UINavigationController's toolbar property that: Access to this toolbar is provided solely for clients that want to present an action sheet from the toolbar. You should not modify the UIToolbar object directly This is sort of hackish, but you could make a UIToolbar yourself and add it directly to the window (i.e. Over the navigation controller.).

It says in the documentation under UINavigationController's toolbar property that: Access to this toolbar is provided solely for clients that want to present an action sheet from the toolbar. You should not modify the UIToolbar object directly. This is sort of hackish, but you could make a UIToolbar yourself and add it directly to the window (i.e.

Over the navigation controller. ).

Gosh, sometimes the simplest things ... I can't believe I hadn't thought of that! I don't think it's 'hacky' at all and seems quite right. Thanks!

– 0bj3ct. M3th0d Jan 25 at 15:47.

The toolbar has limited functionality when used with a UINavigationController. It only provides a convenient way to manage the actionsheet in the toolbar. From the docs: "Access to this toolbar is provided solely for clients that want to present an action sheet from the toolbar.

You should not modify the UIToolbar object directly. " The solution I would use is to create a subclass of UIView with convenience methods to manage your actionsheet and any other custom functionality you need. This custom view can be shared across all views in the UINavigationController and placed where ever you like in the parent view.

This will give you ultimate control of your custom top placed toolbar.

You can use the category below to modify the UIToolbar class to achieve what you're after. @implementation UIToolbar (setCenter) -(void)setCenter:(CGPoint)center { super setCenter:CGPointMake(384, 22); } @end.

Hacky solution! – reedjsmith Jan 25 at 15:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions