![](/img/trans.png)
[英]How to shift control from one uiview to another in touchesMoved method on iPhone
[英]how to move the control from one uiview to another uiview in iphone?
我創建了一個uiview(帶有兩個按鈕),每當我單擊任意一個按鈕時,它都將覆蓋整個屏幕,我想在上一個屏幕上轉移我的控制權,該怎么辦?
從一個視圖導航到另一個視圖的代碼就像belove:
DetailViewController *detailViewController;
[self.navigationController pushViewController:detailsViewController animated:YES];
並返回:
[self.navigationController popViewControllerAnimated:YES];
如果有任何問題,請發表評論...,如果正確,請單擊正確的標志...,然后對答案進行投票,以幫助其他人看到它。
如果您使用NavigationController而不是返回上一個視圖...
[self.navigationController popViewControllerAnimated:YES];
除此以外
[self dismissModalViewControllerAnimated:YES];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.