Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-16-2009, 03:14 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Australia
Posts: 180
Default iPhone icons Rearrange functions

I have come across that facebook app has the icon rearrange feature just like the feature on iphone home screen

if you dont know what im talking about see the following picture.


Does anyone have any idea how they did it? Im pretty sure there must be a function in the SDK the allows us to perform tasks like this.

I would love to learn how they did it...

and also, how do i generate "X" button next to it?
svveet is offline   Reply With Quote
Old 10-18-2009, 08:02 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Australia
Posts: 180
Default

bump on this question.
svveet is offline   Reply With Quote
Old 10-18-2009, 08:32 PM   #3 (permalink)
iPhone Developer
 
kohjingyu's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 326
Default

You'll have to build your own. I'm pretty sure those are UIButtons and you can use core animation to animate them by wobbling them about. The 'x' button is also another image.
__________________
Bacteria Bash
Cheese Collect
Jokestar
Follow me on Twitter for news about my apps:
(Website|Twitter)
kohjingyu is offline   Reply With Quote
Old 10-18-2009, 08:35 PM   #4 (permalink)
Beast Iphone Developor
 
justill45's Avatar
 
Join Date: Aug 2009
Location: Atlanta, Georgia
Age: 16
Posts: 1,302
Default

Quote:
Originally Posted by kohjingyu View Post
You'll have to build your own. I'm pretty sure those are UIButtons and you can use core animation to animate them by wobbling them about. The 'x' button is also another image.
how do you use coreanimation to lets say animate 3 pictures named :

pic1
pic2
pic3

and then loop the animation ?
justill45 is offline   Reply With Quote
Old 10-18-2009, 09:01 PM   #5 (permalink)
iPhone Developer
 
kohjingyu's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 326
Default

Quote:
Originally Posted by justill45 View Post
how do you use coreanimation to lets say animate 3 pictures named :

pic1
pic2
pic3

and then loop the animation ?
Use an NSTimer... *cough* *cough*
__________________
Bacteria Bash
Cheese Collect
Jokestar
Follow me on Twitter for news about my apps:
(Website|Twitter)
kohjingyu is offline   Reply With Quote
Old 10-18-2009, 09:56 PM   #6 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Australia
Posts: 180
Default

Thanks for the feedbacks.

so we had to manually animate the buttons?! its gonna be a big job doing that...doh!

also, facebook allows you to rearrange the icon by dragging. how did the grid works?

did they manually do that as well? by checking touch.x touch.y?
svveet is offline   Reply With Quote
Old 10-18-2009, 09:57 PM   #7 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Australia
Posts: 180
Default

actually i have seen others app do the same thing, could it be a function that we dont know .....yet?!
svveet is offline   Reply With Quote
Old 10-18-2009, 10:18 PM   #8 (permalink)
iPhone Developer
 
kohjingyu's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 326
Default

No, you have to animate the buttons..

I believe there was a tutorial around here somewhere...

Create a CGAffineTransform and rotate the buttons a random number of degrees like

Code:
arc4random % 2 - 1
So you can either get a negative or positive number, then call the function using an NSTimer.
__________________
Bacteria Bash
Cheese Collect
Jokestar
Follow me on Twitter for news about my apps:
(Website|Twitter)
kohjingyu is offline   Reply With Quote
Old 12-16-2009, 11:24 AM   #9 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 87
Default

Quote:
Originally Posted by svveet View Post
I have come across that facebook app has the icon rearrange feature just like the feature on iphone home screen

if you dont know what im talking about see the following picture.


Does anyone have any idea how they did it? Im pretty sure there must be a function in the SDK the allows us to perform tasks like this.

I would love to learn how they did it...

and also, how do i generate "X" button next to it?
did u find solution i am looking same thing ?
gagandeepb is offline   Reply With Quote
Old 12-16-2009, 11:41 AM   #10 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 18
Default

Quote:
Originally Posted by gagandeepb View Post
did u find solution i am looking same thing ?
Just use their open source library:
facebook's three20 at master - GitHub
mjdth is offline   Reply With Quote
Old 12-16-2009, 02:01 PM   #11 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 87
Default

Quote:
Originally Posted by mjdth View Post
Just use their open source library:
facebook's three20 at master - GitHub
Thanks a lot for pointing!
Working like a charm
gagandeepb is offline   Reply With Quote
Old 02-13-2010, 12:52 AM   #12 (permalink)
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,890
Default

Does anyone know how to save the state of your pages after you edit them (move around items?
__________________
I really do this.
Bertrand21 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0