Note that there are some explanatory texts on larger screens.

plurals
  1. USStephenAshley.developer
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CO@RamyAlZuhouri You got it exactly right. To retain an object pointed to by an __unsafe_unretained pointer, you add a pointer to the object to an NSMutableArray, which has no function other than to "own" the __unsafe_unretained objects. When the larger object goes out of scope, the runtime calls the larger object's -(void) dealloc method (where you free the memory that holds all the pointers) and releases the NSMutableArray, thus releasing ownership of the contained objects. At least that's how I think it works.
      singulars
    2. COI don't think he wants individual navigation controllers. I think he wants one navigation controller to navigate among viewController1, 3, and 4. That's how I interpreted his statement, "I need viewController1, 3, and 4 to be wrapped in a navigation controller programmatically." Thanks so much for your ever-so-helpful reference to the UINavigationController Class Reference. I would never have thought to look there.
      singulars
    3. COI did some poking around and found a couple of previous questions along the same lines as yours. (Search on "mpmovieplayercontroller rotation".) The solutions people have come up involve setting up an observer for the MPMoviePlayerPlaybackDidFinishNotification and then trying to force the app into the landscape orientation. The code is pretty ugly. As you probably know already, MPMoviePlayerController inherits directly from NSObject, and there's no obvious mechanism in the MPMoviePlayerController class for solving the problem. Obviously, the same is true of NSObject.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload