Zoom-in transition between views like in Facebook app?
Hi folks,
I am trying to figure out how to perform a zoom in transition from my "main" view to a specific view.
My layout is very similar to the main menu on Facebook's app. I can't find a way to cause the target screen to transition from the main menu screen. I want the transition to original from the UIButton that I pressed on, and to fill up the whole screen.
I am trying to figure out how to perform a zoom in transition from my "main" view to a specific view.
My layout is very similar to the main menu on Facebook's app. I can't find a way to cause the target screen to transition from the main menu screen. I want the transition to original from the UIButton that I pressed on, and to fill up the whole screen.
Any help is appriciated.
Thanks!
What is it you want to do? Have a view emerge from a point on the screen?
To do that you'll have to invoke your new view yourself, rather than using the standard "pushViewController" navigation controller method.
To do an animation on a view, set it's affine transform to a scale of something very small, like .01, .01, then begin an animation block and set the scale to 1, and commit animations. This will cause the system to animate the process of scaling the view from it's shrunk size up to full size.
You can also use layer animation for this, but view animation is probably simpler in this case.
This is exactly what I would like to do. I think I should completely make clear what it is I would like to achieve:
Like the facebook or eprint app, I want to have some buttons on a screen, each linking to a small app within my actual app, and I want each button when pressed to cause the small app which is just a view of course, to open like an app opens on an iphone, so expanding/growing to fill the screen.
The above post is probably extremely helpful for people with quite a bit of knowledge of objective c and xcode, but if someone could outline how to achieve this to someone with less knowledge, but still a fairly firm understanding I, and probably others, would really appreciate it.
This is exactly what I would like to do. I think I should completely make clear what it is I would like to achieve:
Like the facebook or eprint app, I want to have some buttons on a screen, each linking to a small app within my actual app, and I want each button when pressed to cause the small app which is just a view of course, to open like an app opens on an iphone, so expanding/growing to fill the screen.
The above post is probably extremely helpful for people with quite a bit of knowledge of objective c and xcode, but if someone could outline how to achieve this to someone with less knowledge, but still a fairly firm understanding I, and probably others, would really appreciate it.
Thanks a lot in advance,
Adam
The simplest thing to do is to create a navigation based app.
That design pattern uses a navigation controller as the way of organizing a set of "view controllers"
A view controller is a control object that manages a whole screen-full of user interface elements (buttons, text fields, title bars, images, etc.)
When you create a navigation controller, you name one view controller as the "root view controller". That view controller is visible when your app first starts up.
You then "push" additional view controllers on top of the root view controller.
Each new view controller animates on top of the previous one(s).
Once you are done with a given view controller, there is a "popViewController" call that removes that view controller and exposes the previous one.
There is also a "popToRootViewController" call that will pop all the view controllers except the root view controller.
Do a search in the XCode help system for "NavBar". That will take you to a sample app that shows you how to go about creating a navigation app. It is a working example, and should get you started.
You should study the iPhone user interface guidelines to get an understanding of how the different components in the iOS work and how to use them to create different types of apps. You will find yourself fighting a losing battle until you get an understanding of how the iOS framework works, and how it is designed to be used.
The tools Apple provides make it very easy to create apps that follow Apple's user interface guidelines. When you try to do things differently the burden is on you to make everything work, and it can be really hard. I would strongly advise AGAINST trying to do that until you are familiar withe using the UIKit as Apple intends it to be used.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
I am trying to figure out how to perform a zoom in transition from my "main" view to a specific view.
My layout is very similar to the main menu on Facebook's app. I can't find a way to cause the target screen to transition from the main menu screen. I want the transition to original from the UIButton that I pressed on, and to fill up the whole screen.
Any help is appriciated.
Thanks!
I have been spending a while looking into this (it's something I wanted to be able to do myself) and I have now find a fully working, no warnings solution!
I will make a video tutorial for you over the next few days