Domanda

I have a weather app. I let users add new locations which means there should be a way for the user to view the weather data for the new location. Right now I have 1 ViewController which handles a swipe gesture. If the user swipes right/left new data appears until they run out of locations. The problem is I have no transition. I want to add a transition animation to mimic a slide animation transition that there normally would be while moving from ViewController A to ViewController B.

I don't know how to go on and implement this.

È stato utile?

Soluzione

You really should use a UIPageViewController as @HAS told you before. Here is a good link to start with: iOS 7 UIPageViewController

Basically apple's weather app uses the exact same thing.

Altri suggerimenti

Here is what you are looking for.

https://github.com/comyarzaheri/Sol

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top