Wrox Programmer Forums
|
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 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 June 25th, 2010, 03:13 AM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default Ch 5 -Scrolling Views improvement

I found that a more up to date and easier to understand change that handles both portrait and landscape modes equally well is to edit ScrollingViewsViewController.m by replacing the lines
Code:
    NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardBoundsUserInfoKey];  
    [keyboardValue getValue:&keyboardBounds];
with the lines
Code:
    NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
    keyboardBounds = [keyboardValue CGRectValue];
    keyboardBounds = [self.view convertRect:keyboardBounds fromView:nil];
Hope this helps.
The Following User Says Thank You to bartelt For This Useful Post:
thepianoguy (September 23rd, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Views prashar SQL Language 1 December 13th, 2005 02:10 AM
Error handling with performance improvement azmatazz Biztalk 0 May 20th, 2005 07:41 AM
converting Access 2000 views to Sql views matta Classic ASP Professional 1 January 26th, 2005 03:37 PM
Views or not ?? stagedancer SQL Server 2000 1 November 24th, 2004 03:08 PM
Dynamic Dependent List Box improvement SoC Classic ASP Basics 1 August 16th, 2004 01:02 AM





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