Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 4, 2012, 10:00 AM   #1
KarlJay
macrumors 6502a
 
Join Date: May 2010
Location: California
Animation inside of a UITableView record

I'm setting up a UITableView similar to Apple's Recipes sample project. I'd like to have either an animated graphic and/or to update the text on the record.

Think of the image or text as a clock or alarm timer.

One idea is to set a timer, call an update method that changes the pic and text, then refresh all the displayed records.

I think I can make that work, but don't know if it's the best approach.

Is there a way to have an updating text/pic in the records or does this require writing custom code?

Imagine the Recipes having a clock animation or timer where the food icon is, that's what I'm after.
KarlJay is offline   0 Reply With Quote
Old Sep 4, 2012, 06:59 PM   #2
PhoneyDeveloper
macrumors 68030
 
PhoneyDeveloper's Avatar
 
Join Date: Sep 2008
UIImageView can animate through an array of images. This is probably the simplest way to do a clock animation.
PhoneyDeveloper is offline   0 Reply With Quote
Old Sep 4, 2012, 07:54 PM   #3
MattInOz
macrumors 68030
 
MattInOz's Avatar
 
Join Date: Jan 2006
Location: Sydney
Also it's probably time to look at custom subclass of UITableViewCell.

The cell should be able to animate on its own without updating the table.
__________________
There is no such thing as "Collective Wisdom"
[ iPhone 5s, iPad Mini, 13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13"]
MattInOz is offline   0 Reply With Quote
Old Sep 4, 2012, 08:15 PM   #4
Duncan C
macrumors 6502a
 
Duncan C's Avatar
 
Join Date: Jan 2008
Location: Northern Virginia
 
Quote:
Originally Posted by KarlJay View Post
I'm setting up a UITableView similar to Apple's Recipes sample project. I'd like to have either an animated graphic and/or to update the text on the record.

Think of the image or text as a clock or alarm timer.

One idea is to set a timer, call an update method that changes the pic and text, then refresh all the displayed records.

I think I can make that work, but don't know if it's the best approach.

Is there a way to have an updating text/pic in the records or does this require writing custom code?

Imagine the Recipes having a clock animation or timer where the food icon is, that's what I'm after.
Do you want clock hands that spin continuously to indicate that something time-consuming is going on, or do you want to draw a graphical clock face that actually shows time of day, elapsed time, or time remaining.

If what you want is spinning clock hands that have no relation to the amount of time passing, I agree with the other poster that a UIImageView animation is the way to go.

If you want clock hands that actually show a meaningful time indicator of some sort, you're going to have to write some fairly complex Core Animation code.
__________________
Regards,
Duncan Champney, WareTo.
Check out our latest iOS app, Face Dancer, available for free on the App Store.
Duncan C is offline   0 Reply With Quote
Old Sep 4, 2012, 10:05 PM   #5
KarlJay
Thread Starter
macrumors 6502a
 
Join Date: May 2010
Location: California
Quote:
Originally Posted by Duncan C View Post
Do you want clock hands that spin continuously to indicate that something time-consuming is going on, or do you want to draw a graphical clock face that actually shows time of day, elapsed time, or time remaining.

If what you want is spinning clock hands that have no relation to the amount of time passing, I agree with the other poster that a UIImageView animation is the way to go.

If you want clock hands that actually show a meaningful time indicator of some sort, you're going to have to write some fairly complex Core Animation code.
I'm looking at the second one: a graphical clock face that actually shows time of day, elapsed time, or time remaining.
Think of 6 alarms/timers that are for different events, basically the stock timer app is for one timer, this would be for several.
Similar in functionality to this (I don't know if he's got animations or not, the icons all look the same ): http://itunes.apple.com/us/app/multi...365358824?mt=8
KarlJay is offline   0 Reply With Quote
Old Sep 5, 2012, 10:06 PM   #6
Duncan C
macrumors 6502a
 
Duncan C's Avatar
 
Join Date: Jan 2008
Location: Northern Virginia
 
Quote:
Originally Posted by KarlJay View Post
I'm looking at the second one: a graphical clock face that actually shows time of day, elapsed time, or time remaining.
Think of 6 alarms/timers that are for different events, basically the stock timer app is for one timer, this would be for several.
Similar in functionality to this (I don't know if he's got animations or not, the icons all look the same ): http://itunes.apple.com/us/app/multi...365358824?mt=8
I'd probably create a custom control that did this, using Core Graphics, or maybe UIBezierPath objects. It would have a setting for the type of display (count down timer, clock, stopwatch) and take either a time interval or an NSDate, and draw itself based on the setting. I'd then set up a timer that broadcast a notification periodically, and all the clock controls would update themselves when they received that notification.
__________________
Regards,
Duncan Champney, WareTo.
Check out our latest iOS app, Face Dancer, available for free on the App Store.
Duncan C is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
UITableView in UIScrollview IDMah iPhone/iPad Programming 4 Aug 4, 2013 12:25 PM
App that has record spinning animation? aPple nErd iPad Apps 2 Mar 18, 2013 10:51 AM
UITableView problem spilakalb iPhone/iPad Programming 2 Nov 6, 2012 02:36 PM
UITableView dissapears larswik iPhone/iPad Programming 7 Oct 20, 2012 02:17 PM
UITableView ?? Fritzables iPhone/iPad Programming 2 Jul 1, 2012 10:50 PM

Forum Jump

All times are GMT -5. The time now is 08:07 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC