Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-18-2010, 04:05 AM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 2
ehssanh is on a distinguished road
Question UIScrollView blocking diagonal touches, paging horizontally, scrolling vertically

Hi all

So I want to have a UIScrollView, that lets me scroll through different pages horizontally (with paging) and scroll through each content vertically.

If this helps any, I have several UIViews as contents, on each of which I wanna be able to scroll vertically, and I also wanna be able to "page" to the next and previous one by touching.

What I figured is I need to know if touches represent a horizontal, vertical or diagonal movement and block the diagonal...

Any suggestions?


NEVER MIND - SOLVED IT

Last edited by ehssanh; 06-18-2010 at 06:22 AM. Reason: Problem solved :)
ehssanh is offline   Reply With Quote
Old 07-03-2010, 07:02 PM   #2 (permalink)
New iPhone-iPad Developer
 
Join Date: May 2010
Posts: 24
JuanMazuera is on a distinguished road
Thumbs up

Quote:
Originally Posted by ehssanh View Post
Hi all

NEVER MIND - SOLVED IT
Can you please tell me how did you solve it, i'm trying to do the same thing. with no success.

thanks!
JuanMazuera is offline   Reply With Quote
Old 08-05-2010, 04:45 AM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 2
ehssanh is on a distinguished road
Default

Hey Juan

What i did is like this:

I have a ViewController object containing a UiScrollView (let's name it outerCcrollView)
And another object of type UIView which I programmatically created, in which there is another UIScrollView (let's call it innerScrollView)...I am even loading a UIWebview inside this second scrollview disabling its user interaction.

So I simply add the UIView which contains the innerScrollView as a subview to the outerScrollView.

I hope this helps...
ehssanh is offline   Reply With Quote
Old 09-28-2010, 01:41 PM   #4 (permalink)
xyz
Registered Member
 
Join Date: Sep 2010
Posts: 11
xyz is on a distinguished road
Default Same Issue

Hi, I have a similar issue and I am new to xcode. Can you please post some sample code.
Thanks,
xyz
xyz is offline   Reply With Quote
Reply

Bookmarks

Tags
diagonal, paging, touches, touchesbegan, uiscrollview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 334
10 members and 324 guests
Absentia, anothermine, Chickenrig, Domele, fiftysixty, givensur, heshiming, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0