fratony
I hate code!
Profile
Posts: 77
Reg: Aug 14, 2012
Devon
5,370
08/21/12 05:55 AM (13 years ago)

Problems getting started with blank menu screen

I am a complete newbie but have tried to carefully follow through the steps to create a very simple iOS app but I am getting two different problems that may be linked. I have done the process for two apps now, making the second extremely basic (one menu + one page), and get the same issues each time. The first problem is that after opening my source code in Xcode I get three error messages which I have found others discuss through a Google search. These are from another post explaining the errors.... 1. Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"readTextFileFromBundleWithEncoding ERROR using encoding NSUTF8StringEncoding, trying NSISOLatin1StringEncoding", @""]]; 2. Data argument not used by format string [BT_debugger showIt:self:[NSString stringWithFormat:@"readTextFileFromCacheWithEncoding ERROR using encoding NSUTF8StringEncoding, trying NSISOLatin1StringEncoding", @""]]; Following the advice in the post, I deleted the @"" at the end of each bit and this removed the issues. However, when I run the simulator, the icon appears as has the correct image but when I click on it I just get a white menu screen with a grey bar at the top and no menu items to select. Any help would be much appreciated. Thanks.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
08/21/12 06:11 AM (13 years ago)
Have you copied all the necessary folders into the Xcode, like the plugin folder?
 
fratony
I hate code!
Profile
Posts: 77
Reg: Aug 14, 2012
Devon
5,370
like
08/21/12 07:32 AM (13 years ago)
Ahhh - feel stupid but you are spot on - thanks. I have dragged over the plugins for both the apps I created and for the ultra simple one it is now working. However, the slightly more complicated one is still giving a white menu with no items on it. Xcode is definitely updating because I just changed the launch image successfully but when it passes on to the menu it is just the white page with a grey bar at the top. Any further suggestions from anyone?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/21/12 08:27 AM (13 years ago)
Hi in Devon. a) What version of buzztouch are you using? v1.4, v1.5, v2.0 b) "blank screen" If you're using v2.0, have you added the BT_Plugins folder to your project after downloading the source code? Drag the folder over the project after you open it in XCode. c) Language: The error could be due to a character set you're using. This is complex stuff but I'll try to explain it. "one menu + one page" If the "page" is a webpage (I suspect it is), the BT_fileManager class (in your project) could be trying to save / cache the web pages data for offline use. When it's doing this, it's trying to do it using the NSUTF8StringEncoding character set. If you're using something other than "standard characters" in your webpage, (some non-english languages and character encodings cause issues sometimes) you could try changing the NSUTF8StringEncoding in the BT_fileManager to something that supports you locale. Again, this is complex stuff but totally doable because you have the entire project :-)
 
fratony
I hate code!
Profile
Posts: 77
Reg: Aug 14, 2012
Devon
5,370
like
08/22/12 02:12 AM (13 years ago)
Many thanks David - I am using V2.0 and have managed to get things working by building on the very basic version after correctly adding the plugins folder. For some reason, adding the plugins folder did not seem to help the slightly more complicated version of the app which kept giving the white screen but rather than busting a gut over it I have just added extra screens to the one that was working. I'll have to see if it occurs again with any subsequent apps but hopefully remembering to copy the plugins from the start should help. Amazingly I now have an app (in simulator at least) with the pages I want - wow - although I suspect I'm on a very steep learning curve for anything that's not completely straightforward. Much appreciation for the help so far.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/22/12 02:16 AM (13 years ago)
Cool. Good feeling getting something going eh' There's certainly an explanation for the "white screen" app and I'm sure it's something simple. But, like you said, there is lots and lots to this "app building thing" and you're only getting started. Grab something to drink, watch a few vids, and give it a bit. You'll be surprised at how quickly you'll pick it up. Xcode's a pain sometimes but does make a bunch of sense given a few hours in it. Cheers.
 

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.