NimbleKit - fast iOS app development

nk_background.png didn't show.

Problem discussions

nk_background.png didn't show.

Postby samzanva » Tue Nov 22, 2011 12:28 pm

DOCS Q&A said:
"How to set image behind page so it is visible when user scrolls page?
You need to add file "nk_background.png" image to the project, it will be used automatically by NimbleKit engine as a background image behind the scrollable web view."

Sound's cool, but I make a file and add into project like picture.
It didn't appear.

Why? THANX for help.
Attachments
螢幕快照 2011-11-22 下午6.24.32.png
螢幕快照 2011-11-22 下午6.24.32.png (67.1 KiB) Viewed 494 times
samzanva
 
Posts: 12
Joined: Mon Nov 21, 2011 8:18 am

Re: nk_background.png didn't show.

Postby ryubr » Tue Nov 22, 2011 4:14 pm

Whats its size? Mine is the same size as the iphone screen, I´m not sure if the size is smaller if NK does a background repeat css alike.
ryubr
NimbleKit Expert
 
Posts: 445
Joined: Fri Jun 19, 2009 5:36 am

Re: nk_background.png didn't show.

Postby samzanva » Wed Nov 23, 2011 3:39 am

Right, The image is 1024*748 for iPad. Or it must be 1024*768?
samzanva
 
Posts: 12
Joined: Mon Nov 21, 2011 8:18 am

Re: nk_background.png didn't show.

Postby cactuscraig » Wed Nov 23, 2011 5:58 pm

i've never had luck with this...
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: nk_background.png didn't show.

Postby ryubr » Wed Nov 23, 2011 7:12 pm

I just created a new sample project and added a simple PNG 1024x768 (24bit) to it and it is working, check it :-)

com.ago.com.zip
(24.38 KiB) Downloaded 61 times
ryubr
NimbleKit Expert
 
Posts: 445
Joined: Fri Jun 19, 2009 5:36 am

Re: nk_background.png didn't show.

Postby blazeman » Wed Nov 23, 2011 7:23 pm

It also works in the NK Blueprint you can download too!
User avatar
blazeman
NimbleKit Expert
 
Posts: 712
Joined: Sat May 30, 2009 5:58 pm

Re: nk_background.png didn't show.

Postby cactuscraig » Wed Nov 23, 2011 7:46 pm

I think I see the issue. most of my apps are iPad. Doesn't work... When I change simulator to iPhone I see it.

iPhone - it works.
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: nk_background.png didn't show.

Postby ryubr » Wed Nov 23, 2011 7:49 pm

iPad works too, check the sample project :-)
ryubr
NimbleKit Expert
 
Posts: 445
Joined: Fri Jun 19, 2009 5:36 am

Re: nk_background.png didn't show.

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

I did. It gave me no image on my iPad behind the Webview. does it need to be 2x ?
Attachments
Screen Shot 2011-11-23 at 11.09.27 AM.png
Screen Shot 2011-11-23 at 11.09.27 AM.png (607.21 KiB) Viewed 451 times
cr1.jpg
cr1.jpg (19.79 KiB) Viewed 451 times
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: nk_background.png didn't show.

Postby ryubr » Wed Nov 23, 2011 8:26 pm

Wired! O_O

The image is 1024x768 I did the test on the ipad simulator. My apps (NK 1.9.6) worked fine maybe a problem with the recent SDK ?
ryubr
NimbleKit Expert
 
Posts: 445
Joined: Fri Jun 19, 2009 5:36 am

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests