UIButton getting system icons to display - uibutton

Is there a way to get the refresh icon that displays here: UIBarButtonSystemItemRefresh
to display in a UIButton?

Related

Programmatically Show Document Name Popover for Document-Based App

We have a custom window and titlebar for a document-based app, and we would like to support the document name popover (in Yosemite) with the standard disclosure button that appears beside the document title. Here is an image of the disclosure button and the popover when it is clicked (from TextEdit):
Is there a way to programmatically show this document name popover for a custom disclosure button?
It appears the answer to this question is: you can't - without getting into private APIs.

iOS Raised Centre Tab Button

I have seen many examples of the raised center button on a UITabBar, most being just a UIButton placed over the top but all of these need coding on every view, Is there a way of creating this without having to program every view so it will appear on every screen, perhaps something in the app delegate?
I want to achieve a UITabBar with a raised circle in the center.
Subclass UITabBarController. I've found an example here: Raised Center Tab Bar Button.

Xcode Interface Builder set highlighted image for button

I'm making an cocoa application from Mac OS X, not for iphone.
I am able to set the background image of a button and uncheck bordered in the attribute inspector. However, I do not know how I set the image for when you click on it (highlighted/on click, whatever you want to call it). I want to do this because
I have found guides on google to do this with UIbutton but this isn't helpful since I'm making this for Mac.
I am using InAppStoreWindow and the button is in the Title bar. When I click on the button with the custom image, the background goes white:
Thank you very much!
You are getting white background when button is clicked because You're using incorrect type. You need to change button's type to Momentary Change. You can change it in Attributes inspector:
Or change programatically:
[buttonOutlet setButtonType:NSMomentaryChangeButton];
And for highlighting: just add another image as alternate image in Attributes Inspector and it will be shown when button pressed.

Adding a scrollview and get it to zoom

In my iphone app, you get a UIView with a background image and a "start button".
When you hit the start button, the start button will be hidden, and your background aswell. You will see another image. You will also get a "back button".
You should be able to zoom the image and scroll around.
I want everything on the same UIView.
When you hit the back button, everything should get back to the first background image and the start button, and you should not be able to zoom or scroll.
How can I do this? And is it possible at all to hide a scroll view in order to just show a regular screen, in the same view?
Thanks in advance!
EDIT: Ok, I know how to hide the scroll view now, but when the scroll view is shown, you can't scroll! I have made the scroll view bigger than the screen and put a label below the "original screen". How to get it to scroll?
Add a UIScrollView to the main view in which you have the zoom/scrollable image. Simply remove it when the back button is pressed.

Finger scrollable UIWebView when the keyboard is up

In an application that I'm writing I have a UIWebview up top and some UITextFields at the bottom that I want the user to be able to type in depending on what's in the webview. But when they touch the Text Field and the keyboard pops up, the user loses the ability to manipulate the web page to see different parts.
Is there a way to keep the keyboard up and still be able to manipulate the UIWebView?
No I believe the Keyboard is modal so you can't access the form underneath it.
You can respond to the
- (void)keyboardWillShow:(NSNotification*)aNotification;
- (void)keyboardWillHidde:(NSNotification*)aNotification;
notifications and scroll the View up or down when the keyboard is shown...
Example here