Re: [問題] Custom UIImagePickerController
※ 引述《darktt (小朱)》之銘言:
: 根據魯蛇小弟的經驗是,UIImagePickerController 在取消 camera controls 之後,
: 所有的 UI 都被取消了,包含對焦方框。
: 所以小弟的作法是做一個繼承 UIView 的 Class,
: 在裡面建立 touchesBegan & touchesEnded 等事件,
: 將它疊在 UIImagePickerController 的前面,
: 這時候點到螢幕的時候這個 Class 會處理你的動作,
: 並且不會攔截手勢資訊而不將它傳給 UIImagePickerController 知道,
: 所以這時候 UIImagePickerController 就可以根據點擊的區域去改變對焦點了。
大大的作法正是我想要的, 但是更魯的小弟我卻會被擋住手勢資訊
請問大大是這樣:
=========== 以下超魯蛇小弟的假想 ===========
[pickerctl.view addSubview:某個uiview];
然後再 某個uiview 中的
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
// 更正
[[self superview] touchesBegan:touches withEvent:event];
// 要做的事情
}
ps. 回報一下剛剛超魯蛇小弟測試的結果, 這樣無法觸動
uiimagepickercontroller 的自動對焦
=========== 以上超魯蛇小弟的假想 ===========
跪求darktt大的方式
謝謝! <__>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.219.69.157
※ 編輯: sinread 來自: 61.219.69.157 (09/26 10:47)
※ 編輯: sinread 來自: 61.219.69.157 (09/26 10:52)
※ 編輯: sinread 來自: 61.219.69.157 (09/26 14:03)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 8 篇):