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 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.
Reply With Quote
  #2 (permalink)  
Old January 3rd, 2011, 09:19 AM
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

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
ipadhelper@me.com
and I will see if I can run down the problem for you.
Bob
Reply With Quote
  #3 (permalink)  
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
ipadhelper@me.com
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.
Reply With Quote
  #4 (permalink)  
Old January 3rd, 2011, 11:25 AM
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

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.
Reply With Quote
  #5 (permalink)  
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.
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
AutoPostBack Takes Too Long To Load...Why? kwilliams ASP.NET 3.5 Basics 0 April 7th, 2010 11: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 04:14 PM
xslt.Load method in c# takes about 8 seconds pradeepn XSLT 2 August 31st, 2007 04:53 PM
Sub Report Takes long Time ketanpatel Crystal Reports 0 December 3rd, 2004 04:11 AM



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


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