Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional iPhone and iPad Database Application Programming
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional iPhone and iPad Database Application Programming
This is the forum to discuss the Wrox book Professional iPhone and iPad Database Application Programming by Patrick Alessi; ISBN: 978-0-470-63617-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Database Application Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 8th, 2012, 04:57 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 3 images - still there after deleting them

Hello: I'm working with the flag images in Chapter3 using xcode 4.2. I was debugging when I tried changing the names of the .png files to be 1.png and 2.png instead of USA.png and Taiwan.png - thinking that was the issue. However, The issue was elsewhere and I fixed it.

However, once I fixed the issue to show the images - ALL four of the flag images show up fine. So I think I have a gap in my understanding of where the images are referenced in my MasterViewController.m. I believe that the following statment points to the .png image files...

(p65) filePath = [[NSBundle mainBundle] pathForResource:product.countryOfOrigin ofType:@"png"];

I deleted the file from the supporting files folder in xcode using delete references only. Then I deleted the files using finder. I deleted the *.png files everywhere I could find them on the mac... but the images still appear when I run the build. I did a clean (Command-Option-Shift-K), but still have issue. I also read about deleting the build folder but not sure where/what that is or how/whether to do that.

I obvoiusly have a hole in my understanding of this technology until I can solve this mystery. Any help is appreciated. Thanks.

Last edited by bubba hawk; February 8th, 2012 at 05:29 PM. Reason: fixed shortcut key error for 'Clean'
  #2 (permalink)  
Old February 9th, 2012, 09:28 AM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

I assume you are running the program in the simulator. Try deleting the program from the simulator. (it is the same as removing a program from the iPad, click and hold on the the icon until the "jiggling" starts and then click the "x" in the upper left corner of the icon).
Occasionally you may want access to the actual installed program in the simulator. They are located in ~/Library/Application Support/iPhone Simulator which has subfolders for the supported iOS versions (the most recent being 4.3.2 and 5.0). In these subfolders is an application folder that has each application bundle named with a long id string. Inside this folder is the executable, Document and other support files for the application. In Mac OS X 10.7 the user library folder is hidden (not visible in the Finder), but it can be accessed through the Finder>Go>Users/"Your Username"/Library or via the terminal. If deleting the application bundle does not solve your problem, feel free to send the project to
ipadhelper@me.com
and I will sort it out for you.

Bob
The Following User Says Thank You to thepianoguy For This Useful Post:
bubba hawk (February 9th, 2012)
  #3 (permalink)  
Old February 9th, 2012, 12:40 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Yes - I'm using the simulator. using your tip I eventually got it to work. But it got stanger for me. I mistakenly deleted the supporting files folder in xcode so I reverted to backup after Chapter 2 - before any images were included at all! Then I read your post (thank you) and I removed the program from simulated iPad. I then ran the Chapter 2 backup and the images were still there. I removed program from simulated iPad again and ALSO "clean"ed project in xcode 4.2 and now I see that boring old list from Chapter 2 - as expected. I suppose once I get the developer license and test with the handheld then this type of issue will disappear. Thanks for the help!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11:Bulk Deleting hozdaman BOOK: Beginning ASP.NET Web Pages with WebMatrix 3 January 24th, 2012 03:46 PM
Chapter 10: Deleting rows from a table stevedm BOOK: Beginning iPad Application Development 8 September 27th, 2010 03:21 PM
chapter 6 deleting a record problem mustafa BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 6th, 2006 12:08 PM
deleting images from a directory using php Adam H-W Beginning PHP 1 June 7th, 2006 09:57 AM
Deleting a record AND the images? jonpanky MySQL 0 January 4th, 2005 12:13 PM



All times are GMT -4. The time now is 06:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.