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 January 2nd, 2011, 07:25 PM
Registered User
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default OK button takes up whole screen (Chap 3)

I am doing the OutletsAndActions example at the start of Chapter 3.
I am running Xcode 3.2.5 and SDK 4.2

My problem is no matter what I tweaked, the OK button just takes up the whole screen. I have done successfully the HelloWorld example in Chapter and it seems so obvious but I couldnt get it. I just downloaded the sample code and will compare.
Any ideas?

TIA

Last edited by QuanNguyen; January 2nd, 2011 at 07:43 PM..
 
Old January 3rd, 2011, 09:19 AM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

Since the project is quite short, you might try it again from scratch and see if it works correctly the 2nd time. If it does, the discrepancy might become apparent.
If the problem persists, or you can't resolve why it behaves the way it does send the project to
[email protected]
and I will see if I can run down the problem for you.
Bob
 
Old January 3rd, 2011, 10:42 AM
Registered User
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by thepianoguy View Post
Since the project is quite short, you might try it again from scratch and see if it works correctly the 2nd time. If it does, the discrepancy might become apparent.
If the problem persists, or you can't resolve why it behaves the way it does send the project to
[email protected]
and I will see if I can run down the problem for you.
Bob
Thanks for the advice. I tried one more time now without playing with the Size Inspector right away and it works. I did try several times prior to this and the Interface Builder always showed me the correct layout.
 
Old January 3rd, 2011, 11:25 AM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

If the size attributes are left with the default values, the size of the button will be fixed (i.e. same in landscape and portrait), and equal to the size you have set in Interface Builder. In the Size inspector, if you click outside of the autoresize box so that the I-bars are bright red the button will maintain a fixed distance from the top and left edges of the window. If either of the inner arrows is clicked to become bright red the button will also resize in the axis of the arrow, and maintain a fixed distance from the window edges the arrow points to. Also, as silly as this comment seems, it is also important that the correct object in Interface Builder is selected when playing around with these changes.
It is worth taking the time to see how the different options of I-bars and arrows affect the interface. This example uses a fixed window size (affected only by the orientation) and the I-bars impact is more noticeable when the window containing the object can also be resized.
I would revisit the project that is not working correctly and compare the various settings to the one that behaves the way you would like. For me I-bar on top, left and right, and horizontal arrow produce the most consistent view.
 
Old January 4th, 2011, 06:15 PM
Registered User
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the thorough explanation. I just tried several times to recreate the problem but was able to recreate it only once. I did not try at all to play with the Size Inspector; just to position the three objects in different places and with different sizes. However, the problem got worst when I tried to modify the layout after deleting all 3 objects from the layout first and then recreate them one by one. When I launched the program, the screen just flashed and the application excited.





Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoPostBack Takes Too Long To Load...Why? kwilliams ASP.NET 3.5 Basics 0 April 7th, 2010 10:41 AM
Takes 2 clicks to open jagsusa ASP.NET 2.0 Professional 0 January 5th, 2010 12:57 PM
Chap 2 - Avatars and uploading files, (would apply to Chap 6 too) kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 October 18th, 2009 03:14 PM
xslt.Load method in c# takes about 8 seconds pradeepn XSLT 2 August 31st, 2007 03:53 PM
Sub Report Takes long Time ketanpatel Crystal Reports 0 December 3rd, 2004 04:11 AM





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