narco narco - 11 months ago 95
iOS Question

didMoveToSuperview not getting called

I am adding a

to a UIView.

on the scrollview gets called, but for some reason
on the scrollview does not get called, even though the scrollview clearly gets added.

I feel like I must be missing something obvious?

Answer Source

You've probably mistyped the method signature:

- (void)didMoveToSuperview {
  [super didMoveToSuperview];