Re: frame puzzle
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>) |