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 5 Application Development
This is the forum to discuss the Wrox book Beginning iOS 5 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-4425-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS 5 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, 2012, 11:35 PM
Authorized User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 5, page 133

The highlighted box "UNDERSTANDING THE RESPONDER CHAIN" implies to me that if I click (I'm talking simulator here) on the label, the keyboard should be dismissed. No such thing happens on my machine (it just sits there), and I don't had a "real" device on which to check it out. Is this just a simulator issue?

And why does Apple call it a Simulator, and Android call it an Emulator?
Reply With Quote
  #2 (permalink)  
Old May 14th, 2012, 01:10 PM
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 don't have this edition of the book but a previous edition had a description of the responder chain after a program that is the same as "Keyboard Inputs" which is in Chapter 6 of this book (based on the downloadable source code). In that program touching the label dismisses the keyboard. What is the name of the project you are testing this in? The projects in Chapter 5 do not have the same design as the one in Chapter 6 (i.e. the label in the myiPhone app does not have a delegate or superview that will respond to a touch within the label's bounds, since the label has no actions) If the project you are testing the behavior in has a design similar to the Keyboard Inputs project the keyboard will dismiss.

For the unresolved discussion of emulator versus simulator check out:
http://stackoverflow.com/questions/2...and-simulation

Bob
Reply With Quote
The Following User Says Thank You to thepianoguy For This Useful Post:
wel51x (May 14th, 2012)
  #3 (permalink)  
Old May 14th, 2012, 02:23 PM
Authorized User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default my bad, it's Chapter SIX, page 133

and yes, it's the KeyboardInputs program, and it is after implementing the enhancements that are described on pp128-132 that the behavior occurs, ie the keyboard is NOT dismissed when I click on the "Alphanumeric Input" label. It is dismissed when I click anywhere else on the screen.

As I said, this is on the simulator; I don't have a real device on which to test. So might this be a simulator issue? Alternatively, what might I have set up incorrectly that produces this behavior?

Again, apologies for the confusion and advance thanks for any insight.
Reply With Quote
  #4 (permalink)  
Old May 14th, 2012, 02:55 PM
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

The "button" background definitely fills the entire view?

Bob
Reply With Quote
The Following User Says Thank You to thepianoguy For This Useful Post:
wel51x (May 14th, 2012)
  #5 (permalink)  
Old May 14th, 2012, 08:05 PM
Authorized User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default You win the cigar

for some reason I had placed the round rect button so that its upper limit was just below the label, so it wasn't getting dismissed anywhere above that: the label, the area to the right of the label, the area above the label. thanks for your hint which made me look at my .xib a little more carefully.

love the simplicity of this explanation of emulator vs simulator:

The Simulator tries to duplicate the behavior of the device.
The Emulator tries to duplicate the inner workings of the device.
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
Chapter 4 - p.133 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 1 December 9th, 2011 03:03 AM
Chap 3 pg 133: The connection name 'AppConnectionString1' was not found in the ap tomche BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 1 December 1st, 2009 03:48 AM
chapter 2 - page 41 problem creating the page.. jorjiana BOOK: Beginning Oracle Application Express ISBN: 9780470388372 2 August 22nd, 2009 04:25 AM
Certification in Sharpoint Exam 74-133 Mujeeb Mehdi SharePoint Development 0 September 30th, 2007 10:51 PM
Optional Reversing An Array (pgs. 133 to 134) TekWarrior BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 February 24th, 2007 01:57 PM



All times are GMT -4. The time now is 08:10 AM.


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