Android Dialog box alternative in iPhone - ios

I would like to know if there is something in iPhone that resembles dialog box in Android? I have several views to display inside dialog boxes. Each view, I need to control from Dialog box for click events.

I don't think that is a very good idea, but maybe you can try to create custom UIAlertViews. Or show modal viewcontrollers.

Related

Custom button to iOS print panel

I was wondering if it's possible to add a custom button to the print panel (UIPrintInteractionController) in an iOS app and if so how to go about doing that. Thanks.

SelectMenu Widget data-native-menu attribute when in popup

When I use this setting I have one in a form in a dialog, and one in a form that is in a popup. The dropdowns look different.
When data-native-menu="false" the dropdown in the dialog appears in another dialog, which actually looks quite nice. I assume this will allow a more consistent look and feel accross devices.
However when I use this setting data-native-menu="false" on a Select in a popup it does not show the standard select, not the dialog.
Thanks
There's a good reason for this.
As you can see there are 2 kinds of select widget. First one uses native looking select box (one showed with data-native-menu="true"). Other one still uses native select box but it hides it and shows custom jQuery Mobile select box widget (one showed with data-native-menu="false"). This jQuery Mobile widget is shown as popup. This is important point.
Second, mentioned problem is unsolvable, at least from the point of current jQuery Mobile framework, and here's why. In few words, when working with jQuery Mobile popups, one popup can't open another popup. Two popups can exist in the same time. Thou you can always close one popup before opening another one, but this is not usable in your case. Because jQuery Mobile select widget is popup it can't be used inside classic popup widget.
If you don' believe me you can find it in official documentation here, just search for text: "Chaining of popups not allowed". And you will see this text:
The framework does not currently support chaining of popups so it's not possible to embed a link from one popup to another popup. All links with a data-rel="popup" inside a popup will not do anything at all.
On the other hand, dialog is a variation of a classic jQuery Mobile page, just with large margin and semi transparent overlay. It can be used to show popup, just like normal jQUery Mobile page.

How to make an iPhone spinner?

I am creating an iphone application, where i am getting confuse. I need to show a control (displaying Online option) as i have mention in below screenshot. I have seen such type of controls in Android.
When user will press, it should display Offline and Online two options in one small pop up view. Selected option text will come on to the control field. How to implement or give me suggestion to show such type of field in iphone.
Thanks in Advance.
Check the answer here: Any pull down or drop down menu for iOS?
Personally I would make a text box with an image view to make it look like a drop down box. then on tap load a UIActionSheet for the user to select from.

Display Modal Dialog Box with ActiveX

I'd like to create an ActiveX browser plugin that displays a modal dialog box to the user...but how do I do that? If you know of some basic tutorial out there that does exactly this it would be very much appreciated!
You can display modal dialog as usual use DialogBox function.
Only ActiveX control should call method IOleInPlaceFrame::EnableModeless before and after show dialog. Pointer to the IOleInPlaceFrame you can get from your container via IOleInPlaceSite::GetWindowContext method.
Use PreModalDialog() and PostModalDialog()

porting an app to iPad: alternatives for a context-menu? UI advice please

Considering porting/rewriting an app for the iPad and need some UI advice. On the iPad is there a way to pop a context-menu up from a text field without the text field losing focus? If not, what is the closest thing in the UI to this sort of functionality?
In 3.2, the menuItems of the UIMenuController can be customized, so you could just add your items into that array.
If you don't need the text field to be interactive than the menu appears, you could also use a pop-over or action sheet for more flexibility. Make that text field -becomeFirstResponder after that context menu is dismissed.

Resources