Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2012, 11:35 PM
Authorized User
 
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?
 
Old May 14th, 2012, 01:10 PM
Friend of Wrox
 
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
The Following User Says Thank You to thepianoguy For This Useful Post:
wel51x (May 14th, 2012)
 
Old May 14th, 2012, 02:23 PM
Authorized User
 
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.
 
Old May 14th, 2012, 02:55 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

The "button" background definitely fills the entire view?

Bob
The Following User Says Thank You to thepianoguy For This Useful Post:
wel51x (May 14th, 2012)
 
Old May 14th, 2012, 08:05 PM
Authorized User
 
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.





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 04: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 04: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 02:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.