iPad flip-clock with Core Animation - iphone

I'm trying to make the flip-clock animation, I find this tutorial very interesting
http://www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/
but I still can't make it work.
If someone did it and could share is experience or even the code source that will be really nice.
Thanks,
P.S: if you have other tutorial link please share them.

What, exactly, do you need help on?
At the moment, there is some sample code available at Google Code:
http://code.google.com/p/idharmaclock/source/browse/trunk/LostoClock/Classes/LostoClockViewController.m?spec=svn2&r=2
Referenced from:
http://www.iphonedevsdk.com/forum/tutorial-requests/52329-flip-clock-animation-tutorial.html

check this out:
Flip Transform

I actually made a small framework out of the tutorial. Check:
https://github.com/jaydee3/JDFlipNumberView
It contains two main classes:
JDFlipNumberView (animated digits)
JDDateCountdownFlipView (a date countdown, just init with a date, set a frame and there you go.)
In any case, you just need to do three steps:
Init the class
Set a target value (or a date)
Start the animation

I don't know if you can use this but who knows. There's a HTC hero theme for the iPhone, installable on jailbroken iPhones. This is not at all interesting, except for one feature of the theme. It has the flipclock. This theme shows the time on the homescreen exactly like you want. You can download the sourcecode of the theme here. You might have to dig into the code but the flipclock is there somewhere!
Good luck and I hope you'll be able to make your application work like a charm!

Related

In-app tutorial

Im looking at adding a tutorial kind of thing to my app. Basically I want to be able to give a quick message across of what the parts in the app do. I want the users to see it once and not again. I have searched relentlessly for this but I always found app building tutorials.
A lot of games have what I want but I cannot for the life of me find how to do it or, what it is called to find a tutorial. Could someone please help me out.
Thanks in advance,
Sam
You'll need to build it yourself.
What I usually do is, on top of the view i want to explain, add a semi transparent view with some arrows pointing at stuff and a small text/button explaining it. All of that has to be modal and you can save in the NSUserDefaults if the user has already seen it/skipped it/launched the app for the first time. You'd have a method that builds all those views and you simply call it in viewDidLoad (by checking against a simple boolean value store in those previously mentioned NSUserDefaults, for example)

How to create tabs dynamically in Objective C

I am trying to implement the following kind of tabs into my Application. I have first tried it with creating buttons. So can anyone guide me how to create this kind of interface ?
I want to clarify that this are the groups & it will be dynamically created & it can be in any number.
Any suggestions & references will be highly appreciated.
Thanks in advance.
I've been implementing pretty much exactly what you are asking in an app im working on, i've uploaded the source files here. its pretty much plug-and-play, just make a TabView where you want your tabs and hook up the delegate methods. can swap out all the images with your own (my tabs were underneath something and not on top so they will look upside down initially for you).
Dont really have time to explain the inner workings of it all, but if you play around with the code im sure you will manage to customise it how you want. otherwise, just learn from it and implement your own.
edit: oh and there is some code that changes how the tabs look depending if iOS 7 or not, you will get an error when first importing it because i have a variable in my appDelegate isIOS7 which you can either implement in your app, or just take out all the relevant iOS 7 checks in the code

Draw countdown circles

I would like to draw, in a ViewController, a countdown like in the following image:
Unfortunately, I don't have any idea on how to realize this. I will be please if someone could give me a clue on this.
Cheers.
Cyril
LOL, I am considering to write one like this these days.
You would definitely like this. :]
Check it out here: Circle-Counter-Down
A quick thought, I would not like to draw it by using any iOS frameworks :), Just use small UIWebView and run javascript(Only works if user enables javascript, but hey I have seen no one yet who doesn't use javascript).
Javascript polar time can be found on internet, open source like,
http://oneorangesoftware.com/polartimer/
change and edit a bit and off you go! Awesome time!
Cheers!
If you don't like above approach than you may look into this code,
http://www.herbert-siojo.com/2011/04/19/drawing-a-countdown-timer-ios/
nicely crafted however to achieve same look as yours you may have to tweak a bit!
Beware of this line in code,
[self performSelector:#selector(cancelPie:) withObject:timer afterDelay:sliderIntervalDelay.value];
just change to,
[self performSelector:#selector(cancelPie:) withObject:timer afterDelay:60.0];
Credit : Goes to a developer who posted their code on http://www.herbert-siojo.com/2011/04/19/drawing-a-countdown-timer-ios/.

Nice looking UIButton

I'm trying to make a nice looking UIButton. I'm not exactly sure what I mean by that, but something nicer than just a plain white looking rounded corner button with blue font. I can't seem to find anything online, so can anyone help? I want to do it all by programming (no XIB) and I am not an artist so I can't draw any custom images or anything like that.
Back in May of last year, Jeff LaMarche (of iPhone dev shop Martian Craft and co-author of several iPhone development books) put out a suite called GradientButtons that makes it easy to implement pretty, shiny, colorful buttons. I've used it in several projects and it's quite nice.
Here is a tutorial on how to make a shhiny button all in code, no image needed!
Tutorial on gradients at CocoaWithLove
http://tapadoo.com/2010/tired-of-trying-to-create-nice-buttons-for-your-iphone-app-try-this/
I ran into the above link when I was searching for a similar resource. Did the job
The Apple UI guidelines would suggest I think that you use the standard button unless you have good reason not to.

how to create a cover flow menu like ipod app when turn in landscape mode?

As per title, how to create such cover flow menu? Have any reference code or tutorial talk about this?
When you install Xcode, look in
/Developer/Examples/Quartz/Core
Animation/CoverFlow
to find an example coverflow app. I hope this helps you.
Plausible Labs has a licensable implementation of a CoverFlow-like UI here.
http://www.chaosinmotion.com/flowcover.m
This is open source project base on opengles. hope this can help