CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
02/21/14 04:45 PM (10 years ago)

Flashlight plugin not showing button

In the flashlight plugin I can't get the on and off buttons to show.Any ideas?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/21/14 10:24 PM (10 years ago)
Sorry, I don't know. As a side-comment, I have to say that I LOVE the iOS 7 method of turning on the Flashlight !!!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/21/14 11:05 PM (10 years ago)
Niraj, you're supposed to say that the iOS7 method is lame compared to MrDavid's plugin! We talked about this! haha :-) @CMCOFFEE, drop me some info. iOS? Xcode? Plugin version? any and all info regarding buzztouch, system and xcode would be good to know. Also confirm the on and off.png files are in your plugin directory in your project. Cheers! David
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/21/14 11:16 PM (10 years ago)
Sorry yes Ive tried ios 5 and 6.The dv_on.jpg and dv_off.png are in the plugin folder.Im using the latest xcode version.It just shows a blank screen. In the code I seen that the button were connecred to background image if Im not mistken.I then tried dv_on.jpg as the background image in the self hosted control panel. I also added the AVFoundation framework. Im still learning objective c so thats where Im stuck. Thank you
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/21/14 11:18 PM (10 years ago)
Remove the plugin folder and add it again, make sure that checkbox is checked (I forgot what its called, but when you add plugin files, and xcode asks you to add those files, it provides a option with a checkbox, make sure that is checked. If not, those files are not truly connected to xcode and a blank page will show up. Perhaps it is that? No worries, learning is all about the process of solving things! David
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/21/14 11:22 PM (10 years ago)
Ok thank you I will try that.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/21/14 11:42 PM (10 years ago)
Let me know!
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
02/22/14 02:14 AM (10 years ago)
@ CMCOFEE can you please contact me [email protected]
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/22/14 09:35 AM (10 years ago)
It still hasnt shown up.Ive only been trying on the simulator so maybe thats the problem. I have to wait for family to come home to test it on a real device.Still think the image should show up without putting it in the control panel.I know it wont change to off since you cant have a flashlight on simulator.Clicking the background image is what toggles the light on and off?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/14 08:40 PM (10 years ago)
The flashlight background shows up and works on the device!!
 

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.