我正在尝试创建一个UIView,允许用户点击i中的按钮并录制屏幕(不是从相机制作视频),然后将其保存到文档文件夹中.我在这里看到了几篇SO文章,讨论了AVAssetWriter并引用了这个链接:http://codethink.no-ip.org/wordpress/archives/673 ,但该链接似乎已经死了.
但是,没有人真正展示过解决方案或提供了如何实现的任何示例.任何人有任何想法或能指出我正确的方向?这应该比它简单.
谢谢,道格
我试图让UIView向上滑动四分之一的页面以显示其下方的另一个视图(显示选项),然后向下滑动以覆盖这些选项.我无情地搜索过,但似乎无法找到我正在寻找的东西.我不想使用模态视图,因为我想在屏幕上保持顶视图.在下面的代码中,我有点工作,顶层向上滑动,但随后完全消失(淡出).
任何帮助是极大的赞赏!
谢谢.
HomeOptionsViewController *homeOptionsViewController = [[HomeOptionsViewController alloc]
initWithNibName:@"HomeOptionsViewController"
bundle:nil];
// get the view that's currently showing
UIView *currentView = self.view;
// get the the underlying UIWindow, or the view containing the current view
UIView *theWindow = [currentView superview];
UIView *newView = homeOptionsViewController.view;
//newView.frame = CGRectMake(0,300, 320,140);
newView.frame = CGRectMake(0,-10, 320,140);
// remove the current view and replace with myView1
//---[currentView removeFromSuperview];
[theWindow addSubview:newView];
theWindow.frame = CGRectMake(0,-110,320,200);
newView.frame = theWindow.bounds;
// set up an animation for the transition between the …Run Code Online (Sandbox Code Playgroud) iphone core-animation uiview catransition uiviewanimationtransition