I understand that the return value of UIColor initWithRed needs to be handled,
(see my previous question for reference.)
Now my question is, why would
UIView *myUIView = [UIView alloc];
[myUIView initWithFrame:myCGRect];
worked successfully. I didn’t handle the return value that initWithFrame returns!
Or did I just get it all wrong?
allocandinithas the same return value in this case. Theinitmethod just modifies the object created byalloc, so it returns the same object asalloc.