2012-12-23 42 views

回答

0

如果我理解正確的話,你可以測試questionedView這樣:

if([questionedView isDescendantOfView:[storyboardSegue sourceViewController].view]) 
    { 
     // view is from sourceViewController 
    } 

if([questionedView isDescendantOfView:[storyboardSegue destinationViewController].view]) 
    { 
     // view is from destinationViewController 
    } 
相關問題