NimbleKit - fast iOS app development

nk_background.png didn't show.

Problem discussions

Re: nk_background.png didn't show.

Postby cactuscraig » Wed Nov 23, 2011 8:28 pm

Could be. I am on 1.9.8.1
Anyone else out there able to test the test app above on 1.9.8.1.
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: nk_background.png didn't show.

Postby samzanva » Thu Nov 24, 2011 12:32 pm

How to check the version of nimble kit?
samzanva
 
Posts: 12
Joined: Mon Nov 21, 2011 8:18 am

Re: nk_background.png didn't show.

Postby HalfMoon » Thu Nov 24, 2011 1:41 pm

samzanva wrote:How to check the version of nimble kit?


You can use NKGetLibraryVersion()
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: nk_background.png didn't show.

Postby ryanagler » Thu Sep 20, 2012 6:25 pm

I am having the same issue in 1.9.9 where the background is black in iPad but works fine on iPhone. This used to work in older versions of Nimblekit (I am not sure what version but I'm sure it did work). To test I created a new project and the only thing I added was a 1024x768 nk_background.png. The result was it worked on the iPhone but not on the iPad, the iPad just has a black bg. Is there a fix for this?
ryanagler
 
Posts: 14
Joined: Fri Feb 18, 2011 11:13 pm

Re: nk_background.png didn't show.

Postby Alan » Thu Sep 20, 2012 6:56 pm

With iPhone apps, I include both an nk_background.png (320 x 416) and a nk_background@2x.png (640 x 832) and they do show on both my iPhone and my iPad. This is with my device set as iPhone in my target settings.
Alan
Alan
 
Posts: 43
Joined: Fri Jul 22, 2011 3:56 pm
Location: Shropshire, England

Re: nk_background.png didn't show.

Postby ryanagler » Thu Sep 20, 2012 8:05 pm

Alan wrote:With iPhone apps, I include both an nk_background.png (320 x 416) and a nk_background@2x.png (640 x 832) and they do show on both my iPhone and my iPad. This is with my device set as iPhone in my target settings.
Alan


I tried adding an "nk_background@2x.png" to the project and it didnt change anything. Does nk look for a file by that name for iPad? My app is an iPad app, so specifying iPhone as the target isnt appropriate.
ryanagler
 
Posts: 14
Joined: Fri Feb 18, 2011 11:13 pm

Re: nk_background.png didn't show.

Postby Alan » Thu Sep 20, 2012 11:06 pm

I haven't targeted the iPad specifically myself, but I think you do have it correct as it is. Perhaps double-check the filename and the resolution? Sorry can't suggest anything better at the moment.
Alan
 
Posts: 43
Joined: Fri Jul 22, 2011 3:56 pm
Location: Shropshire, England

Re: nk_background.png didn't show.

Postby ryanagler » Thu Sep 20, 2012 11:27 pm

the resoulution is 1024x768. this has to be a bug introduced in some later version of nimblekit. i looked at a previous app i have in the app store that was built with a previous version of nk and it shows the background image on iPad. but if i build it again on my machine with the most recent version, and even starting a plain vanilla nk project from scratch with the most recent version, never shows the nk_background on iPad, it is just black...
ryanagler
 
Posts: 14
Joined: Fri Feb 18, 2011 11:13 pm

Re: nk_background.png didn't show.

Postby ryanagler » Fri Sep 21, 2012 6:25 pm

Can anyone at all confirm that nk_background appears on iPad when the most recent version of nk is used to build the app?

I am about to submit app updates for around 20 apps for clients because iOS6 breaks the navigation controller for apps built with nk before the fixes were made. before i embark on that, it would be nice to know if this truly is a bug with nk, and i can expect a fix for the nk_background-missing-on-iPad issue or not.
ryanagler
 
Posts: 14
Joined: Fri Feb 18, 2011 11:13 pm

Previous

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests