Discussion Forums  >  Uncategorized

Replies: 27    Views: 440

Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
04/12/11 06:45 AM (14 years ago)

Button List Menu lock

Hi David. Can you look at Ledarskap on Tomas Gustavsson account. The button menu on third tab is locked. We can not scroll up the menu.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/12/11 08:52 AM (14 years ago)
Cool menu, nice pics with the neat green background. Launched in Simulator, scrolls as expected. If your're using the simulator, it's a bit tricky sometimes to 'grab' the screen in the right place to scroll up / down without selecting a button. I usually put the cursor in between the buttons to scroll it.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/12/11 09:24 AM (14 years ago)
Hello again. I forgot to say that it is only on the iPad. On the iPhone it works perfect.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/12/11 12:23 PM (14 years ago)
Could it be a failure of the IPAD version with button menu list?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/12/11 05:30 PM (14 years ago)
Totally possible but no other reports of this so probably not. Could it be that all the buttons 'fit' on the button screen when viewing in iPad. It's possible that they all fit and don't need to scroll? I'll recheck on iPad when I get back to the office. Nudge this post if you don't see a new comment.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/13/11 12:12 AM (14 years ago)
Hi David. Some of the buttons are below the tabs, and I can not scroll up on the Ipad.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/13/11 12:40 PM (14 years ago)
Hi David. I do not want to be repetitive but have you had time to check out the app in ipad. The app is almost finished and then I will upgarde it on the AppStore.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/13/11 05:04 PM (14 years ago)
It's ok, no worries. So... I spent awhile looking at is last night. Then again today. I really struggled to find anything wrong. In fact, I didn't find anything wrong. It's all about the Content Height vs. the Device Height. The content height needs to adjust so the scroller is necessary. I have verified this is working. I was not able to scroll it during these tests. It appeared broken. Then... a few minutes ago.. I tried somethign else and it works. When runnign the sim, if I use the mouse and 'flick' to scroll while on top of an image, it works! This is different than the iPhone where I've been scrolling by 'flicking' with the moust in-between the images. iPhone in between the images seems to work. iPad, ON the images seems to work. Strange behavior for sure. I think you'll find that it scrolls if you start your scrolling over an image and not on the green background. Not sure if this is acceptable or not but does appear to be the way iOS handling the source-code on the iPad. Not any other adjustments I can think of?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/14/11 12:47 AM (14 years ago)
Hi David. Look at the movie a made. when I try to scroll up on the iPad the menu goes back. I can not access the buttons below the tabs. IPad menu is set to Grind all the other options works except Grind mode. http://www.sweapp.se/bt/ledarskap.mov
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/14/11 01:33 AM (14 years ago)
Ah... I was under the impression that it didn't scroll at all. Got it, this makes perfect sense. It looks to me like there is not enough 'space' below the last buttons to allow it so scroll up 'enough' This is an easy fix. I'll get the source-code updated but you can adjust yours so you don't have to wait for us. In the BT_Screens folder, find BT_screen_menuButtons.m. What we need to do is add some height to the screens content. Roll down to around line 437 and find this line: self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); This is where the heigh to of the content is set. If we increase the height of the content, the scroller will more up more. Start by adding 100 to the height and see how it works. Like this... self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100); Notice I added 100 to the contentHeight value. Experiment with this value, 150, 75, 200 etc. It's trickier on our end because the contentHeight value is dynamic based on all sorts of things like button size, nav bar hidden / showing, tab, status bar, padding, etc. You can adjust yours and we'll get this end worked out for the next guy.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
04/14/11 02:57 AM (14 years ago)
Thank you my King! Now it works perfect!
 
Kallitechnes
Lost but trying
Profile
Posts: 10
Reg: Dec 17, 2010
Vermont, USA
100
like
06/10/11 11:21 AM (14 years ago)
FYI, I'm having a very, very similar problem with the grids in my app, Hickey of the Beast. If you try to scroll down to grab Chapter 13 or 14 under Read this Serial, it bounces back up. Any suggestion of how I can fix this, preferably without having to recompile my code and resubmit to the app store?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
06/10/11 11:29 AM (14 years ago)
Hi kallitechnes. If you look at Davids comment above you see the solution. You add 100 or more after contentHeight. self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100);
 
Kallitechnes
Lost but trying
Profile
Posts: 10
Reg: Dec 17, 2010
Vermont, USA
100
like
06/10/11 02:46 PM (14 years ago)
Mackimack - do I have to recompile the code and resubmit it to the App Store after making that change, though?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/10/11 06:56 PM (14 years ago)
@Kallitechnes: Yes, any changes to the Objective C code in Xcode will require a re-compile and app store update.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/15/11 01:16 PM (14 years ago)
@david : i tried the fix self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100); but it didnt work on ipad. it still doesnt scroll up or down. i went up to 50,000 uos still doesnt work self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 50000); any thoughts? thansk
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/15/11 11:50 PM (14 years ago)
Are there any settings in the control panel that prevent scrolling? Seems weird that increasing the height of the scroller would not allow this. Not sure what else to suggest other than making sure your button screen's advanced settings don't have prevent-scroll set to YES
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/16/11 12:34 AM (14 years ago)
Hi david, Thanks fo the quick response I tried to change the advanced setting to yes an no. But still doesnt work. I'll keep trying. If you think in something esle for the fix, please let me know If i find a way to fix i'll post it here the solution. Thanks again for th help
 
Annonymous
Profile
08/17/11 11:12 PM (14 years ago)
@david : i tried the fix self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100); but it didnt work on ipad. it still doesnt scroll up or down. i went up to 50,000 uos still doesnt work self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 50000); any thoughts? thansk
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/17/11 11:14 PM (14 years ago)
i wasnt able to fix. but what i did was to make everything fit on one screen. so i just made the button smaller with less spaces hope this helps someone
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/25/11 10:00 AM (14 years ago)
Hi Guys, I was able to fix. Hope this help someone in the future . So there are 5 x self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); Under the file BT_screen_menuButtons.m. The one you have to change is under //grid the other ones wont change anything. (at least is what i think) Also if you are testing on the simulator. you will have to quit the simulator so it will make changes. otherwise you will be changing the numbers and think it's not working. so Step 1) quit simulator Step 2) find: self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); under: //Grid Step 3) Make Changes EX: self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100); Thanks David for the help, Always appreciated :)
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/25/11 10:02 AM (14 years ago)
@David @ buzztouch Now i just have a small problem this fix changes both iphone and ipad. if i make the ipad with enough space to scroll down. the iphone keeps a huge gap and when i scroll up all the buttons goes way up until all the buttons disappears on the iphone. is there a way to change only the ipad , and only the iphone size? let me know thanks
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/26/11 12:02 AM (14 years ago)
You'll just need to do a simple coniditional check in the places you made the changes. Like... if([[yourAppDelegateName].rootApp isIPad]){ ..this is an ipad }else{ ..this is not an ipad } Have a look in the other parts of the code to find the syntax for the isIpad check, happens in tons of places.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/26/11 02:19 PM (14 years ago)
@David so this is what i have to do? if([[soundsofmyapps].rootApp isIPad]){ self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 500); }else{ self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight + 100); } sorry i'm not a programmer. most of the things i do is just copy and paste. but i'm affraid to brak it becuase it's almost done. thanks by the way thanks for the response
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/26/11 10:54 PM (14 years ago)
It's hard to see the syntax in this forum so tough to say, it does look right. There are a few other places that iPad or not is checked. Look at some of the other lines of code so you can copy-paste. Like line 88 in BT_screen_menuButtons.m checks for iPad or not. I think you have it right.
 
moapp
buzztouch Evangelist
Profile
Posts: 157
Reg: Oct 23, 2010
location unknow...
1,570
like
08/29/11 09:21 PM (14 years ago)
thanks, i'll try that.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/20/12 09:03 PM (14 years ago)
does anyone have a fix so that the Horizontal Bottom shows up in the bottom for the iPAD? because i can't seem to get it to the bottom!! playing around with +300 and sizes but to no avail! thanks for any input
 
Wicked37
Aspiring developer
Profile
Posts: 7
Reg: Jan 05, 2013
Wollongong
70
like
09/15/13 12:22 AM (12 years ago)
Hi All I have just read all of this and the solution does work thanks everybody for asking the correct questions and for all of the correct answers. Cheers Shane
 

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.