Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 85

dshelby
Code is Art
Profile
Posts: 3
Reg: Jan 10, 2013
seattle
5,930
01/11/13 06:05 PM (13 years ago)

Interactive Quiz plugin: using images need a modificaiton.

Hi, I noticed that the Quiz plug uses BT_viewController for the view controller. I was wanting the text to appear above the image not as an overlay on top of the image. Thus, Text question <text image> Text answers What is an easy/quick way to customize that change? Thanks much in advance.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/11/13 08:28 PM (13 years ago)
Watch this Webinar on how David Book explains modification of the Menu with Header plugin. It may turn on a few light bulbs for you. Try the 25:00 and 45:00 minute spots. http://www.youtube.com/watch?v=Cfc5aBim0ZU Let us know how you get along on this journey! -- Niraj
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
01/12/13 09:08 AM (13 years ago)
I am not sure of any ways to easily do this with the free plugin. I am working on a paid plugin that addresses this. Should be ready in a few weeks. http://youtu.be/8goE-BnNEtk Edit: Just watched Niraj's video. The Q at 45:00 does address this in another plugin. Best of luck.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/12/13 12:13 PM (13 years ago)
@nadthevlad -- awesome coding without using a XIB file and with using Auto Layout! Does that mean the plugin is restricted to the iOS 6 users only? -- Niraj
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
01/12/13 12:58 PM (13 years ago)
That's correct Niraj, iOS 6 only.
 
dshelby
Code is Art
Profile
Posts: 3
Reg: Jan 10, 2013
seattle
5,930
like
01/12/13 03:50 PM (13 years ago)
Thanks much all, I derived a fix that will work for me for this app. It is to adjust the offset of the UIImageView with in the Question Box UIView. I made the following changes. In the file BT_screen_quiz.m method viewDidLoad 1) I added a variable for offset. questionBoxTextHeightOffSet = 75 I found 75 works for me for this app, though I can see adding a Json configuration for setting this value as beneficial. 2) Adjusted the questionImageView by offset. This change was made just after the "//question Image View" . questionImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, questionBoxTextHeightOffset, questionBoxWidth, questionBoxHeight - questionBoxTextHeightOffset)]; 3) changed scale to fit to AspectFit. [questionImageView setContentMode:UIViewContentModeScaleAspectFit]; This seems to be working for now. Thanks again all for assistance.
 
dshelby
Code is Art
Profile
Posts: 3
Reg: Jan 10, 2013
seattle
5,930
like
01/13/13 05:27 PM (13 years ago)
Thanks much all, I derived a fix that will work for me for this app. It is to adjust the offset of the UIImageView with in the Question Box UIView. I made the following changes. In the file BT_screen_quiz.m method viewDidLoad 1) I added a variable for offset. questionBoxTextHeightOffSet = 75 I found 75 works for me for this app, though I can see adding a Json configuration for setting this value as beneficial. 2) Adjusted the questionImageView by offset. This change was made just after the "//question Image View" . questionImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, questionBoxTextHeightOffset, questionBoxWidth, questionBoxHeight - questionBoxTextHeightOffset)]; 3) changed scale to fit to AspectFit. [questionImageView setContentMode:UIViewContentModeScaleAspectFit]; This seems to be working for now. Thanks again all for assistance.
 

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.