cocoaTouch/otherSrc/CommodityFunctions.m
changeset 3385 361bd29293f4
parent 3373 c1ff724a5c34
child 3405 8fdb08497bf1
equal deleted inserted replaced
3384:7eb4707d43f0 3385:361bd29293f4
    42     [theTeam release];
    42     [theTeam release];
    43 }
    43 }
    44 
    44 
    45 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation) {
    45 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation) {
    46     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    46     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    47         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    47         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) || (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
    48     else
    48     else
    49         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    49         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    50 
    50 
    51 }
    51 }
    52 
    52