What is this UI Element? - iphone

Is this a built in UI Element? I see it used in the address book, mail app, and other 3rd party apps but I can't find the object in Xcode anywhere...

That is a UIActionSheet. Basically, it's intended to replace what would be commonly accomplished with a Combo Box in a traditional setting.

This is called a UIActionSheet you usually use it to present a user with a set of options for an action. You can use it to warn a user about a potentially dangerous task such as deleting something like a photo. you can read more about it here:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html

Related

Name of special alert view iphone

I have been looking for the name of this UI element for a while now, but I cant come up with anything. What is the name of the round rect with 'Reloading Data' in it? I thought that I remembered using a view like this a while back, and there was some open source library that made its use much easier.
Screen shot of cydia.
The Apple API is private and cannot be used in AppStore apps. I and many others use MBProgressHUD: http://cocoadev.com/wiki/MBProgressHUD.
It's MBProgressHUD.
You will get more opensource controls on this link.
Why don't you just use a UIActivityIndicator? It essentially provides the same utility without the need to implement 3rd party code? Do you really need any custom behavior the class does not already provide? The simpler the better you know..? ;)

Implementing a To-field as in mail.app

Is there a way to get the To-field, as it is implemented in mail.app, into my app easily? If not, how would you go about creating such an advanced component that has manual text entry, "packaging" of entered addresses in "blue boxes", line wrapping and a '+' button to access the address book?
(I already have the code necessary to pick out contacts/e-mail addresses, I'm only asking about the To-field.)
Apparently the TTMessageController in Three20 is what you're looking for, according to this question: How to create a To field like the one in Mail or Facebook app?

How to create a To field like the one in Mail or Facebook app?

Does anyone know how to create a 'To field' like the one in Mail or Facebook app?
When an address is added from the A-Z list, a blue component that represents the address will be added to the text field. Is there a class provided for this functionality, or do we have to implement by ourselves?
There's no built-in framework. You'll either need to implement it yourself or use one of the open source components, such as Three20 (which includes the one used in the Facebook app).
In Three20's author's blog I found these few lines:
Message composer
TTMessageController emulates the
message composer in Apple's Mail app.
You can customize it to send any kind
of message you want. Include your own
set of message fields, or use the
standard "To:" and "Subject:".
Recipient names can be autocompleted
from a data source that you provide.
Maybe you should take a look at its source code at github.

Facebook like button

Can anyone tell how can remove unlike functionality from facebook like button?
Modification of the "Like" button is not allowed...
http://developers.facebook.com/docs/reference/plugins/like/
"By using the Like Button, you agree to the general guidelines and terms found here. You also agree that you will not modify the Like Button in any way beyond the customization options provided on this page."
I thought unlike was added by 3rd party apps anyway. The only way I can think of doing it is using jquery to find the unlike elements on the page after everything has loaded and then remove them.

what is the default pop up replacement now?

I know pop ups are not good and should be avoided if possible but is that really true that now, whenever i think of using a pop up, i should always be considering other options? Are there any exceptions? And the last question is: what is the default replacement for pop ups?
You can use any javascript based dialog. Look for example at jQuery UI Dialog
The "Web2.0" pop-up might be a lightbox. I hope these are just a passing fad, because they are kind of annoying (a lot like pop-ups).
http://en.wikipedia.org/wiki/Lightbox_(JavaScript)
Banners, like you get at the top of Stack Overflow to tell you about badges, comments, see the FAQ if you're a new user are my favorite. They don't really get in the way and can link to the main content.
It depends on what you are trying to accomplish. Pop-ups are completely acceptable in certain contexts. The aversion to pop-ups arose from having pop-up foisted on users in the form of advertisements. I think that pop-ups are still a valid device in the correct case.
My rule of thumb is to not make any decisions for the user that they can make themselves. This typically includes opening a pop-up since they could right-click and choose "open link in new window" if they so desired.
Do you want to capture of a piece of user input without allowing any further interaction? A modal dialog is your friend.
there are cases where you want to offer a bit of useful info or a quick reference that doesn't necessitate closing off the rest of the web page or navigating to a different location. This could be addressed using some javascript and floating div's but many times a pop-up will do what you want without being obtrusive to a user.
I tend to read resources from the likes of 37 signals and UIE to keep up with the best ways to enhance user experience without alienating a user.