Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 58

DryFrog
Lost but trying
Profile
Posts: 42
Reg: Jun 26, 2012
São Paulo
4,620
06/25/13 10:46 AM (12 years ago)

NAD Quiz next question automatically scroll to the top

Dear ones, Is there a way to make the next question automatically scroll to the top? Because when the user needs to scroll down to read all the options, the next question will appear as it was already scrolled down. So you'll need to scroll to the top. This brings the problem that, sometimes, while manually scrolling to the top, you'll end up answering the question accidentally... Hope I've made myself clear... Thanks for all help! Cheers, dryFrog
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/25/13 07:57 PM (12 years ago)
I have noticed that with the scroll view before. And it can be very annoying. I have one more night shift and then a few days off. I should be able to look into this then. NAD
 
DryFrog
Lost but trying
Profile
Posts: 42
Reg: Jun 26, 2012
São Paulo
4,620
like
06/26/13 09:26 AM (12 years ago)
Ok, nadthevlad! Take your time and thanks for your support, as always... Cheers, dryFrog
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/30/13 12:22 PM (12 years ago)
Add [_scrollView setContentOffset:CGPointZero ]; to the transitionQuestion method: https://dl.dropboxusercontent.com/u/2452503/resetscroll.png When the topview pops into the screen it doesn't look good. So I added the topview to the fade in and out animation. Add _topView.alpha = 1.0; to the bottom of the fade in method. fade in https://dl.dropboxusercontent.com/u/2452503/fadein.png Add _topView.alpha = 0.0 to the bottom of the fade out method; fade out https://dl.dropboxusercontent.com/u/2452503/fadeout.png
 
DryFrog
Lost but trying
Profile
Posts: 42
Reg: Jun 26, 2012
São Paulo
4,620
like
06/30/13 06:21 PM (12 years ago)
Very good! I'll try this later this week. Thank you so much! dryFrog
 
DryFrog
Lost but trying
Profile
Posts: 42
Reg: Jun 26, 2012
São Paulo
4,620
like
07/12/13 06:41 AM (12 years ago)
Perfect!!! Just one little correction: Include the semi-comma in the end of Add _topView.alpha = 0.0; And voilá! Thanks for the .pngs! Cheers, dryFrog
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.