Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning iOS Programming: Building and Deploying iOS Applications
This is the forum to discuss the Wrox book Beginning iOS Programming: Building and Deploying iOS Applications by Nick Harris; ISBN: 978-1-118-84147-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS Programming: Building and Deploying iOS Applications 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 10th, 2014, 01:52 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving

In the bands example, I have completed chapter 6 and figured I made a mistake. When I enter a band and all the additional fields, I get a message "Please supply a name for the band". If I enter just the name and no other fields it works? Why is that? I am adding NSLog to see why and how to fix it. I think it is in the textFieldShouldReturn should generate a key if it does not exist or when the init the form it needs it. Any suggestions?

Thanks
Reply With Quote
  #2 (permalink)  
Old April 10th, 2014, 11:53 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving solved

Here is what I did to solve this issue. Don't know is this the best way to complete it.

Code:
if(!self.bandObject || self.bandObject.name.length == 0)
    {
        self.bandObject.name = self.nameTextField.text;
    }
I inserted this just before the original
Code:
if(!self.bandObject || self.bandObject.name.length == 0)
Hope that helps.
Reply With Quote
Reply


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
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 04:33 PM
How To avoid the SAving of toolbars while saving Hari_Word Excel VBA 6 July 26th, 2004 12:13 AM
Saving as zip ppenn Excel VBA 2 March 11th, 2004 04:15 PM
Saving davidhowell1971 Excel VBA 1 March 1st, 2004 03:02 PM
Saving to the clipboard xelepi Javascript How-To 2 November 7th, 2003 06:51 AM



All times are GMT -4. The time now is 03:05 PM.


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