メソッドを呼び出すとき
- (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view
permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections
animated:(BOOL)animated
UIPopoverController の、私は UIPopoverArrowDirectionUp | を渡します。allowedArrowDirections パラメータの引数としての UIPopoverArrowDirectionDown。
私の質問は簡単です:
arrowDirections で UIPopoverArrowDirectionDown の存在をテストするにはどうすればよいですか?
if (arrowDirections == UIPopoverArrowDirectionDown)
NSLog(@"arrowDirections contains UIPopoverArrowDirectionDown");
動作しません。