How to replicate iPhone's wifi network selection popup view - iphone

As far as I know, there's no standard UI component that looks like Apple's wifi selection popup:
Are there any open source custom components out there that I can use to get a similar popup in my app? If not, how would I go about writing my own?
I did find this on Google Images:
So I guess it is possible.

You can add subviews to a UIAlertView and make a custom behavior. I would recommend looking at this link:
http://codesofa.com/blog/archive/2009/07/15/look-uialertview-is-dating-uitableview.html
I also found this similar question:
How to add UITableView to UIAlertView?

Its a UIAlertView with a UITableView inside it.
The top view containing the switch is a UITableViewCell - Grouped with a UISwitch ontop.
The bottom view is just a UITableView.

Related

Rearranging UIAlertView's button layout

just a quick question.
Is it possible to change layout of UIAlertView's buttons? Two of them look nice
However three buttons and more waste so much space with, is there any way to re arrange them? So they are in horizontal order like with two buttons?
Default layout is :
Only thing that come to my mind is to create view, add buttons on that view and add it as a subview to UIAlertView...
You'll have to create your own custom AlertView I'm afraid:
Subclassing Notes
The UIAlertView class is intended to be used as-is and does not support subclassing.
The view hierarchy for this class is private and must not be modified.
- Apple
In regard to custom UIAlertViews, the following link might be what you're after - https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets.
Following is best link for custom UIAlertView that you want .
https://github.com/stavash/UIBAlertView
https://github.com/TomSwift/TSAlertView
For more get custom UIAlertView this is The Best site for any Custom Controls.
Choose any one form above link and add it with your requirement.

UIPickerView with UIButtons?

I can't seem to find it anywhere, I don't know if its a pre-built object apple offer or if people custom build them.
When in an iPhone app you tap a button and then up it slides, a view which looks like a UIPickerView in visual style but has a list of buttons on it.
What is this, how could I make one? Also, on iPad, similarly, the popover view with a list of buttons. Thanks.
Are you looking for UIActionSheet ?

Creating a custom UIActivityIndicatorView

I want to have a custom view for UIActivityIndicatorView rather than relying on options given by iOS. How can I create my own view here?
I have a list of images with me to create a animated view.
As you haven't specified the case in which you want to use the activity indicator,
check the below tutorial blog for custom UIActivityIndicatorView,
Custom UIActivityIndicatorView (EDIT: This link is gone)
Showing a "Loading..." message over the iPhone keyboard
This is implementation of custom UIActivityIndicator from scratch ready for integrating.
Abhinav, if you want to use a set of images you could as well use a UIImageView. Set the animationImages and start-stop as you wish.
This one looks nice and clean, can be hooked to the code easily too.

How to realize the same effect like iPhone's homescreen

I want to add some custom buttons and realize the same effect like the iPhone's home screen. What I can think of is to calculate the position of each button and add them to the view. Are there any other ways to do this? e.g. add buttons to the tableview
Check TTLauncherView from Three20,
I realized the same view of the thumbnails in the photo app (which in principle differs only because of the background color and the rounded effect of the buttons) using a custom cell (with 4 UIButtons inside) in a normal tableview.
In my case, this is because I need to scroll up and down, in your specific case there should be a way to "lock" the table from scrolling. By the way, for this reason, it could be simpler to design the custom view in the interface builder, it is very quick to design such a view, and then create a custom controller to provide simple methods to assign icons and actions to the UIButtons dynamically.
You could also look at the Three20 libraries as already suggested, it is already implemented, but you app will easily be rejected by Apple if you do so.

how to create a view like a cell with disclosure accessory button?

I want to pop up a view when user touch on the screen,it is just like a tableview cell with disclosure accessory button.It has text showing message and when the user press the accessory button,it will take some action.
I have seen a similar example in iphone cookbook, it create a UICalloutView:UIControl,
but it seems that it uses some private API.
can anyone tell me how to achieved this?
Well, it's probably private. You could printScrn the accessory and add it as a resource to your project, and use it as an image.