0

I am scaling a view so that it grows. It is scaling correctly but the view is moving to the right before animating. I'm not sure what is causing it and more importantly how to fix it.

Here's my code:

(.H file) enter image description here

(.M file) I have my custom Method enter image description here

(.M file) I have the call to the method enter image description here

Here's what the view looks like before and after animation... enter image description here enter image description here

Tom Harrington
  • 69,312
  • 10
  • 146
  • 170
  • 2
    Try calling `[super viewDidAppear:animated];` – liamnichols Feb 24 '14 at 18:40
  • Please take the advice given to you in your previous question. When overriding any life cycle method in a UIViewController or any of its subclasses, you should **always** call the method's super implementation. – Mick MacCallum Feb 24 '14 at 18:43
  • I didn't read your response until after I posted this. I think you're right. I'm gonna try to put the view as a subview as you suggested. – user3071579 Feb 24 '14 at 18:46
  • Problem solved. I added the view as a subview and then set the leading and trailing constraints. Thanks. – user3071579 Feb 24 '14 at 18:59
  • Do not ask the same question twice (http://stackoverflow.com/questions/21994862/why-is-my-uiview-not-growing-with-cgaffinetransformmakescale) – matt Feb 24 '14 at 19:04
  • 2
    Vote to close on the grounds that you are duplicating yourself, downvoted because you are not listening to the answers that you get. – matt Feb 24 '14 at 19:04
  • Problem solved. I added the view as a subview and then set the leading and trailing constraints. Thanks. – user3071579 Feb 24 '14 at 19:00

0 Answers0