• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: frame puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frame puzzle


  • Subject: Re: frame puzzle
  • From: Robert Vojta <email@hidden>
  • Date: Thu, 22 Aug 2013 22:12:44 +0200

On 22. 8. 2013, at 22:05, David Rowland <email@hidden> wrote:

>  CGRect tframe = CGRectMake(12, 12, 100, 100);
>  [appDelegate.buttonController.rotationControl setFrame:tframe];
>  CGRect qframe = appDelegate.buttonController.rotationControl.frame;
>
> buttonController is a UIViewController, rotationControl is a UIControl. When this is executed qframe is reported as (0, 0, 0, 0). Does anyone see what is wrong?

Probably your appDelegate, buttonController or rotationControl is nil … Read Programming with Objective - C - Working with objects [1] if this is the case. Members of returned struct are zeroed in this case (search for nil messaging, message to nil, …).

[1] https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html#//apple_ref/doc/uid/TP40011210-CH4-SW22
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >frame puzzle (From: David Rowland <email@hidden>)

  • Prev by Date: Re: frame puzzle
  • Next by Date: Re: Variable Number of Parameters in Method
  • Previous by thread: Re: frame puzzle
  • Next by thread: Protocols and the +initialize class method
  • Index(es):
    • Date
    • Thread