Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (26)

Sign In or Sign Up now to post a comment!
  • Very good video! but how to swipe back then? so without the buttons on the top?

    Only with the swipe tool.

    I see that I can set the swipes to left and right but when i put more swipe recogn. on the view bar and set it to swipe left the building get OK but it didn't swipe anymore.

  • @chrisvanlaar When you touch the back button, the uiviewcontroller is poped (really removed) from the navigation stack. So, you can create a custom button and pop the controller by code with [MyController popViewControllerAnimated:YES]­­;

    or you can pop to the first uiviewcontroller using [MyController popToRootViewControllerAnimate­­d:YES];

    If you use a modal popup, you must use a [MyController dismissModalViewControllerAnim­ated:YES]; MyController can be self

  • Any body can tell me how can use swipe gesture between two views without take any storyboard...plz help me

  • @vkinlove13 Sure, you must use a uinavigationcontroller and a gesturerecognizer. Simply attach a swipe gesture in the view and on swipe-action write "[self.navigationController popToViewController:newControl­l animated:YES]"

    In the my website g8production. com there is a simple imageviewer with 2 swipe gestures in the same view. Download the "EASY IMAGE VIEWER WITH LEFT-RIGHT SWIPE GESTURES" project and try to swipe.

  • @pbudino ops, sorry, the action is "[self.navigationController pushViewController:newControl­­l animated:YES]" and not popToViewController!

    The push "show" the view, the pop "un-show" the view

  • @vkinlove13 After create a new project with a uinavigation controller and 2 views, after set the swipe gesture like in my project and finally change the swipe-action like explained before. Trust me, it's simple.

  • @pbudino Thanks a lot for telling me.

  • next time when you will upload any video so please make this viewable. Cant see any thing, I am new in iphone

  • @vkinlove13 please use a 480p or 720p video for best resolution.

  • @pbudino - ok thanks...one more question plz, all the video shows this with storyboard is this possible without take any story board. mean to say how can we do that between two views ????

  • @vkinlove13 or... find "Navigation Controller and Swipe with Storyboard without write code - Xcode 4.2 & iOS5" on youtube.

  • All worked fine for me. Thanks for a neat video - I can make a swiper now.

  • Are you using the push effect? It works only with a uinavigationcontroller (it has a view stack with push and pop actions)! Search "Navigation Controller and Swipe with Storyboard without write code - Xcode 4.2 & iOS5" video in YouTube.

    Otherwise, without use a uinavigationcontroller, you must use the modal effect and you must set a uiview around the uiimageview end set the swipe inside the uiview.

  • I'm doing all of this except my swipe doesnt work in the simulator, not using navigator, although i do have UI image views on the gesture view controllers. Do I need to add something if im using a image view?

  • so this doesn't work, i can't connect the gesture from either view to another... Any suggestions?

  • @PhilipOno yes, what are you doing? it's simple drag&drop (ctrl+left mouse) your mouse pointer from the gesture in the controller to the next view/controller.

  • Hey... How can I get the new view to come from the right side, instead of the bottom? I think that it would look better :)

    Thanks !

    Peter

  • @pete6104

    You can use a custom swipe (u must to create a subclass of UIGestureRecognizer) and make a custom view transition;

    Otherwise, you can use a UISwipeGestureRecognizer with custom target directly in your code, without use a swipe object in the storyboard panel. You must also create a custom view transition.

    Last but not least, you can use a uinavigationcontroller with a swipe gesture recognizer, without write code!!! I want to load a tutorial this afternoon. Follow me :)

  • @pbudino Thanks:) I am not good at code, so if it can be done without code, it would be nice...

    peter

  • @pbudino Hey, and can you pz send me a link? that would be nice:)

  • @pete6104 search "Navigation Controller and Swipe with Storyboard without write code - Xcode 4.2 & iOS5

    "

  • @pete6104 Hi pete, there is a new tutorial on navigation control for you. Look at my channel. Good luck :)

  • music dude are you serious ?

  • @iJassin sure :)

    think different ;)

  • I think if you use your voice to explain your actions instead of the music, your tutorials would be great.

  • @empty7up sure... but the music is nice :)

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