Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的相机使用 UIImagePickerController 并添加了一个叠加视图控制器来拍摄快照并转到相册(如 PhotoPicker 示例中所述)。但现在我想像普通相机一样添加两个浮动按钮(一个用于闪光灯,另一个用于切换相机)。您能告诉我如何添加这些浮动按钮,或者如果不是浮动按钮,它们到底叫什么?谢谢
以编程方式添加UIButtons,然后Overlay View Controller使用[overlayView addSubView:yourButton];
UIButtons
Overlay View Controller
[overlayView addSubView:yourButton];