Is is possible to allow the view to be editable (allow user interaction) when a UIActionSheet is in view? For example [nameofactionsheet showInView:self.view];. Normally whenever the action sheet is open the user can't play around with view behind it. Is it possible to allow interaction?
thanks
Not if you use UIActionSheet.
But you could implement with custom logic perhaps..
Wrap the UI in your custom view (for showing different choices)
Add that custom view to your desired view controller's view
Voila ;)
Related
I want to add one dropdowncombo in UISearchBar like mail application (NSTokenField).
On clicking that combo it will display the list of items. I have read many blogs but there is no public control from Apple. Is there way to do this?
NO. you have to use UIPickerview or UISegmentedControl to create a drop down menu.
If you want custom control,you can check this link:-
https://github.com/katokichisoft/KSPopoverView
if you need any further assistance..please reply to me..
you can also use action sheet..Its upto you..
enjoy..
There is no build in control to make dropdowncombo. Instead you can use picker or as in mail application there is a custom controller. you can make it Simply by a table view on a view and presenting it. You can also show the list of Items in the UIPopOverController by adding the controller having table view and manage the content size of the popover.
I want to achieve something like this with my application and its keyboard.
http://www.youtube.com/watch?v=ajs1p5NCNw4 from 1:32 - 1:38.
How can you hide your keyboard by swiping it horizontally and show another view on its place? Is it possible with default keyboard or should I create my own view with few buttons which I'll need and then add the swiping? (I know how to do this, but I'm not sure if apple wouldn't deny the app in app store because I implement my own keyboard or something like that)
Those are custom views. It might be a scroll view with paging enabled and two subviews (the numerical keypad is one subview and items view is the other subview).
The app might be using the custom view in place of the system keyboard, by setting the inputView property of a text field for example. Or it might just be displaying the custom view as a subview of its top-level view.
I am trying to replicate the feature in voice memos app that uses a custom UiTabBar displaying a slider (showing how long and where the the audio currently is) and two buttons (delete and share). I am struggling to find answers as to generate a similar tabbar that can control the content shown in the background. I would appreciate any comments or suggestions on how to achieve this with monotouch. Thanks.
To put it simply, what you are seeing in the voice memos app is not a tab bar. It is a custom UIView that is at the bottom of the screen.
Create a custom view to put at the bottom, and give it delegate call backs to your controller that also controls your other content. When a button is pressed have you view call back to the delegate and then the delegate can act on it.You may also want to give your custom view an external property so that you can have your controller update the position of the slider.
Hoep this is of some help to you :)
I want to implement a drop-down list in an iPhone application, the same like you might have seen in iBooks when you select PDFs/Books.
I have a slight idea how to implement it, just correct me if I am wrong:
Create the button
On a click event of the button define a CGRect and within the CGRect draw a LoadTableView
Load TableViewData at runtime.
Is that correct? If not, how should I do it?
Here's a much better/easier way to do it.
Create custom UITableViewController and associated nib. Use this class to encapsulate your tableView and data.
When the user clicks on your button, instantiate your custom view controller and display it modally using presentModalViewController:animated
When the user has selected an option from your popup view, call back to the parent view with the results.
Dismiss your table view with dismissModalViewControllerAnimated:
This is what iBooks does with a highly customized UITableViewController.
Are you looking for a UIPickerView?
This component gives you the possibility of selecting from a custom number of elements through a dedicate table view. Use it in conjunction with a UIActionSheet to get the best results.
I did a simple view based application.
I need to place three textfields in an alert view.
it is not possible According to UI guidelines.
So that i crate a view just like an alert view,And place text field in them.
Add it as subview to mainview while tap on a button.
Now what i need is when ever tap on button i need to disable userinteraction to main view,and enable userinteraction to the subview.
For that i am trying this code on button click event.
[object.viewController.view setUserInteractionEnabled:NO];
here object is object of appdelegate class.
But,if i place this it disables userinteraction of subview also.
But i need to disable for only main view.
i think people get what my problem,
if not let me add a comment.
Thank u in advance.
You can add UITextField inside UIAlertView, so it will cover main view so (as you required) user could not interact with the main view.
Similar thread which discuss UITextField in UIAlertView on iPhone - how to make it responsive?
Here is You tube video to add UITextField inside UIAlertView
I hope it will resolve your problem.
i resolve my problem,instead of disable of user interaction of main views i disabling user interaction for contents in the view(Buttons,textfields...).
And enabling then when sub view while closing sub view.
Let me Know if there is any Better way than this.
try using an action sheet. they;re much more flexible. on second thought check out InputAlertView in this