Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iPad Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning iPad Application Development
This is the forum to discuss the Wrox book Beginning iPad Application Development by Wei-Meng Lee; ISBN: 9780470641651
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iPad Application Development 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 May 13th, 2010, 01:14 PM
Registered User
 
Join Date: May 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 - Split View-Based App

When I double-click the DetailView.xib (Step 1, p. 120) and look at the DetailView.xib window, it lists the toolbar underneath the View. I assume I need to delete this class and add the navigationBar class, correct?

[update]

I am not sure if 3.2 changed during the writing of the book. I suspect it did which is why I did not get the expected results at the outset.

There are several issues with this tutorial. It builds correctly from the downloaded file, but did not build correctly following the steps outlined in the book. You can get it to build correctly following the steps in the book with some modifications.

The first issue dealt with the DetailView.xib. I could not get this to build correctly in the simulator after three attempts. I had noticed that the toolbar was included in the initial DetailView window, not the Navigation Bar during the second attempt. I found the NavigationBar in the Classes screen and thought by adding it to the view that would take care of the issue. For some reason, I could not get it to build as it did in the downloaded version. I'm still uncertain what I did wrong in trying to resolve this issue. I ended up opening the xib in the downloaded version, and saving it as the same xib in the folder that contained my build. I need to go back and check Apple's documentation. I am interested in understanding why the toolbar is automatically added when a split-view is created and the navigation bar is not...as well as...how the toolbar differs from the navigation bar.

The other issues dealt with snippets of code that were grey (not in bold) which needed to be included in the code. Most notably, anything dealing with the Navigation Bar. I also commented out anything dealing with the toolbar.

There are also some additional snippets of code missing in the RootViewController.m and DetailViewController.m files. Carefully comparing the code from the downloaded files with the files I was building identified which snippets were missing.

Once I took care of the xib and compared the code, the app built correctly in both the simulator and on the iPad.

Split-views are essential to some of the apps I am beginning to work on so tearing this apart to try and understand what was happening helped my learning style. Just wanted to add these comments in case someone else was hitting the same issues.

Last edited by johnoeffinger; May 13th, 2010 at 04:11 PM.
Reply With Quote
  #2 (permalink)  
Old May 14th, 2010, 10:09 PM
Authorized User
Points: 172, Level: 3
Points: 172, Level: 3 Points: 172, Level: 3 Points: 172, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Posts: 21
Thanks: 0
Thanked 6 Times in 4 Posts
Default Changes in Split-View based Template

Yes, you are right. Apple has changed some of the components in the Split-View based application in the later beta versions of the 3.2 SDK. For an updated look, check out my article at http://mobiforge.com/developing/stor...ased-apps-ipad.

Hope this helps!

Thanks!
Wei-Meng Lee
Reply With Quote
The Following User Says Thank You to weimenglee For This Useful Post:
GeezerRoy (August 30th, 2010)
  #3 (permalink)  
Old May 19th, 2010, 01:53 PM
Friend of Wrox
Points: 1,676, Level: 16
Points: 1,676, Level: 16 Points: 1,676, Level: 16 Points: 1,676, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2006
Location: , , .
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

There are also errors in the code for building the Bluetooth peer to peer app (instructions). Part one of the tutorial has you build and run the app, but the app crashes because there is a reference to a method recieveData which is not introduced until part 2 of the tutorial. When I get a moment, I will submit the errata.

Regards,
Reply With Quote
  #4 (permalink)  
Old May 19th, 2010, 09:24 PM
Authorized User
Points: 172, Level: 3
Points: 172, Level: 3 Points: 172, Level: 3 Points: 172, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Posts: 21
Thanks: 0
Thanked 6 Times in 4 Posts
Default Bluetooth code

Hi:
Thanks for the feedback. Part 1 of the Bluetooth example demonstrates how to find peers. Hence the code for receiving data is not covered until Part 2. However, building part 1 will not crash the code, unless of course u go and click the Send button when the app is deployed. Let me know if this is not the behavior u observed on your machine and I will investigate further.

Thanks!
Wei-Meng Lee
Reply With Quote
  #5 (permalink)  
Old May 21st, 2010, 05:43 PM
Friend of Wrox
Points: 1,676, Level: 16
Points: 1,676, Level: 16 Points: 1,676, Level: 16 Points: 1,676, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2006
Location: , , .
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Smile

Hi,

I would say it's not the behavior to expect. The call to the recieveData() should be introduced in part 2, or a note in the text that indicates that you will get a run time error because there is a reference to a method that can't be found if the connection is made.

As a note, I think the book is well written and a good read. I am enjoying it.

Regards,
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
Obfuscation..of windows based vb.net app. causes t tciinc General .NET 1 July 10th, 2007 08:13 PM
Problems with view details based on querystring zacksofia ASP.NET 1.0 and 1.1 Basics 10 March 12th, 2006 06:45 PM
View records based on formula deepakbhota Crystal Reports 0 August 11th, 2005 08:35 AM
Web Based SQL and PC App reyboy SQL Server 2000 6 May 7th, 2004 08:47 PM
Examination Server Client Based App SalmanAnjaria VS.NET 2002/2003 0 July 28th, 2003 10:32 AM



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


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