How to achieve the same effect like the unlock slider in the welcome screen of iPhone OS? - iphone

I need to do something similar, where an animation highlights the text of a button to show that it must be slided to do something. Just like that unlock thing on the iPhone. How is that done? Is there a tutorial how to achieve this effect?

The searchlight-effect is also included in the three20-project, if you are planning to build such a control on your own.

There's a project here: http://altosdesign.com/iphonesdk/SlideToCancel.zip which has the effect you're after.

Related

iOS display a lock/unlock slider like the lock screen?

I'm trying to let the users of my app cancel an active alarm using a slider, like the timer app or the iPhone lock screen.
Is this control available to us as developers? If so, what's the name of it, and do I need to add it programmatically? I do not see it in the interface builder.
Thank you!
You could always try this on cocoacontrols.
Slide to unlock control
There you go,
http://xcodenoobies.blogspot.com/2011/03/how-to-do-slide-to-unlock.html
It's not a standard control - you'll need to create it yourself.
However, I think you should be able to customize the slider control. You can change the look and feel of that by supplying your own graphics, and it should be easy to simulate the behavior of the lock slider (such as making it slide back to 0 if it doesn't get all the way across).

Lion style non-modal alert example for iOS

Xcode4 introduced the gray-rounded-square style non-modal alerts that momentarily appear as required. For an example, see 'Build Succeeded'. iirc, this style of non-modal alert is also used elsewhere in Lion.
Now, also iirc, I believe I saw some official iPhone sample code showing how they recommend this effect is achieved in iPhone Apps, but I can't find it again. I'd like to use in my App this to achieve a consistent style.
If someone recalls what I'm talking about, I'd appreciate a link. Thanks.
I think you're talking about the bezel notification style? On iOS, I know SSToolkit has support for such a display (under HUD View).
Another way: This uses MBProgressHUD and provides sample code.
I think you can do it using a momentary UIActivityIndicator. Something like this
EDIT: or this
EDIT: The idea is the same, a custom activity indicator. The above answer gives you some more specific links to your problem. But well it is an activity indicator you're looking for.

iPhone SDK - Expanding Buttons like in the camera app

I am curious as to whether or not there is an open source solution to replicate the flash button in the iOS camera applicaiton.
I have seem many other apps use this, but there doesn't seem to be a native way, so I assume there is a common source out there.
It is possible to get the flash button by using UIImagePickerController class, but most of the camera apps out there don't seem to be using this (or perhaps they subclass it, which is against apple's terms).
I am looking for a way to replicate the expanding behavior of the button. Any thoughts?
It doesn't sound too hard.
The way I'd do it is to separate the right curve of the button (as images), and make a UIView that has the left part of the button and the right curve as subviews.
When it's tapped, slide the right curve and animate the extra buttons in.
You could use a stretchable UIImage (see UIImage documentation) and then just animate the frame changing.
In the Apple 2010 WWDC Sample code (downloadable via iTunes, otherwise I'd post it here), there are several sample applications which use this control. They call the class ExpandyButton. I realize I'm answering my question, but hopefully someone out there can find this useful.
While looking for a similar solution to this problem I came across this code which was extremely helpful. Similar to ExpandyButton it fit my needs better.
https://github.com/ddebin/DDExpandableButton

What kind of animation goes into the 'slide to unlock' text on a iphone?

I am just getting a hold on how controllers/views work on the iphone.
I want to learn some basic animation, like how the text on the iphone is animated when you need to unlock the phone it says 'slide to unlock'.
Are there any tutorials on basic animations you guys can guide me to that do something similar?
Check out this similar question on SO: Slide To Unlock Animation.
There are also a few nice examples that demonstrate how to build the entire view. Try searching on github or bitbucket.

iPhone Tile View

Does anyone know how to create an icon tile layout similar to that of the Application tile view, where I can hold down an icon and sort them. This is also similar to the home screen of the Facebook application.
Is there a special UI control that I can use, or will I have to create this manually? If so, how would I do that?
Help is very appreciated!
Joe Hewitt's Three20 library has a "Launcher View" that does exactly what you need.
http://github.com/joehewitt/three20
You could also use MyLauncher, if you prefer something other then the Three20 giant.
http://github.com/Jarada/myLauncher