On 22. 8. 2013, at 22:05, David Rowland <rowla...@sbcglobal.net> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com