Edge Pan
This is next entry of Drag and Drop
In iOS7, Edge gesture recognizer is coming.
Edge pan means that to detect tap at the edge and swipe any direction.
Edge is view edge which is target.
We need to set place whether left or right edge.(UIRectEdgeLeft, UIRectEdgeRight)
Sample
ViewController
#pragma mark - #pragma mark - Edge Pan -(void)edgePan { CGRect rect = CGRectMake(10, 150, 300, 100); UIView *panView = [[UIView alloc] initWithFrame:rect]; [panView setBackgroundColor:[UIColor greenColor]]; [self.view addSubview:panView]; // Target is not correct UIScreenEdgePanGestureRecognizer *gestureRecognizer = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(userDidPan:)]; gestureRecognizer.edges = UIRectEdgeLeft; // Just left eadge pan when pointing left edge, work [panView addGestureRecognizer:gestureRecognizer]; } -(void)userDidPan:(UIScreenEdgePanGestureRecognizer *)recognizer { CGPoint location = [recognizer locationInView:self.parentViewController.view]; CGPoint velocity = [recognizer velocityInView:self.parentViewController.view]; NSLog(@"Pan x %f, y %f vx %f vy %f", location.x, location.y, velocity.x, velocity.y); if (recognizer.state == UIGestureRecognizerStateBegan) { } else if (recognizer.state == UIGestureRecognizerStateChanged) { } else if (recognizer.state == UIGestureRecognizerStateEnded || recognizer.state == UIGestureRecognizerStateCancelled) { } }
Nice post. I was checking continuously this blog and I am inspired! Extremely useful info specifically the last phase 🙂 I take care of such information a lot. I was seeking this particular information for a very lengthy time. Thank you and good luck.
My brother recommended I might like this website. He used to be totally right. This publish truly made my day. You can not consider simply how a lot time I had spent for this information! Thanks!
It’s a pity you don’t have a donate button! I’d certainly donate to this excellent blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Talk soon!
I do not even know how I ended up here, but I thought this post was good. I do not know who you are but definitely you’re going to a famous blogger if you aren’t already 😉 Cheers!
tooth extraction http://dentalcare.adsuse.com/
I blog quite often and I truly appreciate your information. The article has really peaked my interest. I will take a note of your site and keep checking for new information about once per week. I subscribed to your Feed too.
I simply could not leave your website prior to suggesting that I extremely enjoyed the standard information an individual supply on your visitors? Is going to be again incessantly in order to check out new posts
Saved as a favorite, I love your site!
Hello I am so grateful I found your website, I really found you by accident, while I was browsing on Yahoo for something else, Nonetheless I am here now and would just like to say thanks a lot for a incredible post and a all round thrilling blog (I also love the theme/design), I don
great publish, very informative. I’m wondering why the opposite specialists of this sector don’t notice this. You must continue your writing. I am confident, you’ve a great readers’ base already!
Hey There. I found your blog the usage of msn. That is a really neatly written article. I will make sure to bookmark it and return to read extra of your helpful information. Thank you for the post. I will definitely comeback.
Hello there, I found your website by the use of Google while looking for a similar topic, your website got
here up, it looks great. I have bookmarked it in my
google bookmarks.
Hello there, simply was alert to your blog thru Google, and located that
it is truly informative. I am going to be careful for brussels.
I will be grateful in the event you proceed this in future.
A lot of people will probably be benefited from your
writing. Cheers!
Magnificent beat ! I wish to apprentice while you amend your site, how can i subscribe for a blog web site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept
Greetings! Very useful advice in this particular post! It is the little changes that produce the greatest changes. Many thanks for sharing!
Good information. Lucky me I discovered your site by chance (stumbleupon). I have saved it for later!
I need to to thank you for this very good read!! I certainly loved every bit of it. I have got you saved as a favorite to check out new things you post…
These are truly great ideas in concerning blogging.
You have touched some fastidious factors here.
Any way keep up wrinting.
This is a topic that’s close to my heart… Best wishes! Where are your contact details though?
Hi my buddy! I wish to say that this post is wonderful, fantastic written and come with roughly all important infos. I’d prefer to see extra posts like this.
Wonderful site. Lots of useful info here. I am sending it to some pals ans additionally sharing in delicious. And certainly, thanks for your sweat!
This is the fantastic read through personally. Have to agree that you simply are amongst the coolest blog writer I previously saw. Appreciate your submitting this useful facts. This became just what I had been on looking for. I’ll return to this website without a doubt!
I needed to thank you for this fantastic read!! I absolutely loved every bit of it. I’ve got you book marked to check out new things you post…
Thanks for sharing excellent informations. Your web site is very cool. I am impressed by the details that you have on this blog. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and just could not come across. What a great website.
I have been examinating out a few of your posts and i must say nice stuff. I will definitely bookmark your website.
Thanks so much for giving everyone a very remarkable possiblity to discover important secrets from here. It really is so superb and full of a good time for me personally and my office peers to visit the blog no less than thrice in 7 days to find out the fresh guidance you have. Of course, we’re usually astounded concerning the brilliant guidelines you serve. Some 1 facts in this article are without a doubt the most suitable we have had.
I am not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for excellent information I was looking for this information for my mission.
I’m not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this information for my mission.
Oh my goodness! Awesome article dude! Thanks, However I am having problems with your RSS. I don’t know the reason why I can’t join it. Is there anyone else getting the same RSS issues? Anybody who knows the solution will you kindly respond? Thanx!!
I have to convey my gratitude for your kind-heartedness in support of men who really need assistance with in this subject. Your personal commitment to getting the message all-around had been quite good and has always encouraged professionals just like me to achieve their desired goals. Your warm and helpful information indicates this much to me and much more to my fellow workers. Many thanks; from all of us.
I just want to say I’m new to blogging and certainly loved your blog site. Most likely I’m planning to bookmark your blog . You actually have good articles and reviews. Bless you for revealing your web-site.
I like this post, enjoyed this 1 appreciate it for putting up.
Hello! Do you use Twitter? I’d like to follow you if that would be ok.
I’m undoubtedly enjoying your blog and look forward to new posts.
Awesome! Its truly awesome post, I have got much clear idea on the topic of from this piece of writing.
These are tuly enormkous ideeas in oon tthe topicc oof blogging.
Yoou have touced some gokd factoirs here. Anyy wayy keep uup wrinting.