Tutorial Part 1: How to make expanding/shrinking views on iPhone SDK

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,057
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 13, 2010

This is part one of my first ever tutorial showing you how you can make expanding/zooming and shrinking view animations in the iPhone SDK, like in the facebook app.

Part 2: http://www.youtube.com/watch?v=gUK-hrL0fOQ

These are the things shown in this tutorial:

-Assigning outlets and actions
-Make a simple navigation based application
-Setting up view controllers
-Calling functions
-Using defines
-Using the sender property of buttons
-Using button tags
-Switch statements

The source code and instructions file shown in the video are available for download from here: http://www.abgapps.co.uk/dropbox/ExpandViewTransition.zip

Want to include navigation bars in the app? Check out this tutorial: http://www.youtube.com/watch?v=tIlCA-JhAsg.

Please visit my website at http://www.abgapps.co.uk!

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (abgapps)

  • This is a good tutorial. I would like to know how I can reduce the size of the second view so that it appears above the first view (something like an Alertview).Can you help me?

  • @rk0170 I can have a go later and get back to you, but out of interest is this the easiest way around what you are attempting to do? You could just have a UITextView or UIImageView appear the size you want in on the main view?

  • This is a great tutorial; I've built this thing a couple of times, and I'm pretty sure I've been meticulous, but at the stage just after adding a view controller to the 'expandingViewController page, I can NOT seem to get the secondVC to display in the connections tab once I go to File's owner... Any ideas? I'm going out of my mind so any help would be appreciated.

  • @Scottulus I have PM'd you my email address so you can send me your project for me to take a look.

  • Hi there,

    This is an awesome tutorial for as im new in programming apps. Thank you so much.

    I would like to know if you could please make a tutorial on a view curl, if u tap on the bottom of the view, it curls and takes you to the second view.

    Also on how to put a login system on your app.

    Best regards.

  • @MrSoninke I am not exactly sure what you mean. I could potentially do a tutorial if you provide some more information. I apologise for the extreme lateness of this reply but I took a break from developing.

see all

All Comments (27)

Sign In or Sign Up now to post a comment!
  • your awesome man. this is exactly what i was looking for!

  • Thanks, man. Corrected it! Best tutorial out there in my opinion (I'm completely new to xcode, so this helped out a lot!

  • Ok it was that.

    Shame on me not going to the third part !

  • @JulianBrain I am not entirely sure what you mean. Perhaps take a look at this video of mine which talks about including topbars in the app - there is a link to it towards the bottom of the description of this video. It may indeed solve your problem. I hope it helps.

  • Everything works until this line :

    if ([animationID isEqualToString:@"animationExp­and"]) { [[self navigationController] pushViewController:viewControl­ler animated:NO];

    }

    The pushViewController function brings view to fullscreen...!

    On my first view, I got a topbar with logo and buttons, I want this bar to be on every view, WITHOUT make it on each view (I just want the first view to stay "behind", where we just see the top bar)...

    Do you understand ? Like in Facebook app, in fact...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more