0
如何檢測實際視圖是否來自Storyboard中的源或目標視圖控制器?故事板中的源和目標視圖控制器
如何檢測實際視圖是否來自Storyboard中的源或目標視圖控制器?故事板中的源和目標視圖控制器
如果我理解正確的話,你可以測試questionedView
這樣:
if([questionedView isDescendantOfView:[storyboardSegue sourceViewController].view])
{
// view is from sourceViewController
}
和
if([questionedView isDescendantOfView:[storyboardSegue destinationViewController].view])
{
// view is from destinationViewController
}
向它請求'presentingViewController'。 –
你能幫我正確使用它嗎?如果(presentsViewController ==什麼?){} – user1639377
無法理解你。多解釋一點 – junaidsidhu