草庐IT

nasty_bars_present

全部标签

c# - MvxSidebarPresentationAttribute 未在 Presenter 字典中配置

UnhandledExceptionSystem.Collections.Generic.KeyNotFoundException:ThetypeMvxSidebarPresentationAttributeisnotconfiguredinthepresenterdictionaryMvvmCros5.6工具VisualStudio2015Windows8.1iPhone7模拟器iOS10.3代码菜单View[MvxFromStoryboard("Main")][MvxSidebarPresentation(MvxPanelEnum.Left,MvxPanelHintType.Pus

ios - CALayer.draw(in :) and CALayer. needsDisplay(forKey :) not called when expected, presentation layer unexpectedly nil

我正在尝试实现一个具有隐式动画属性的图层,但我看到了一些非常奇怪的行为。这是一个简单的层,它演示了我的意思:classCustomLayer:CALayer{overrideinit(){super.init()implcitlyAnimatedProperty=0.0000needsDisplayOnBoundsChange=true}overrideinit(layer:Any){super.init(layer:layer)implcitlyAnimatedProperty=(layeras!CustomLayer).implcitlyAnimatedProperty}requi

iphone - 如何在iOS中实现 "Touch status bar to scroll to top"?

情况:tableView嵌入到scrollView中我搜索了一些问题,有人说将scrollView的scrollsToTop设置为NO(scrollView.scrollsToTop=NO;)会起作用。我试过了,但是没用...谢谢你的帮助编辑...我知道原因了这是因为我在ScrollView中嵌入了多个表格View所以我应该将除我所在的View之外的所有其他View设置为“scrollsToTop=NO;”:-) 最佳答案 尝试将父ScrollView的scrollsToTop设置为NO,并为TableView将其设置为YES。

ios - 截图方法: Skipping the Status Bar

我从苹果官网上得到这个截图方法:-(UIImage*)screenshot{//Createagraphicscontextwiththetargetsize//OniOS4andlater,useUIGraphicsBeginImageContextWithOptionstotakethescaleintoconsideration//OniOSpriorto4,fallbacktouseUIGraphicsBeginImageContextCGSizeimageSize=[[UIScreenmainScreen]bounds].size;if(NULL!=UIGraphicsBeg

ios - 警告 : Attempt to present <UIViewController: 0x74acff0> on <ViewController: 0x82b25a0> whose view is not in the window hierarchy

我是ObjectiveC编程的新手,我正在制作一个应用程序。我正在使用osx10.8.4和xcode4.6。我正在尝试(模态)在单View应用程序中从一个ViewController切换到另一个ViewController。我已经为segue提供了segue标识符,并在Storyboard中放置了一个segue。但是,当我尝试segue时,控制台会显示:Warning:Attempttopresentonwhoseviewisnotinthewindowhierarchy!这是我的第一个ViewController.m文件的代码(包含用于segue的代码):Viewcontroller

ios - "Application tried to present modally an active controller"尽管设置了各种安全防护措施

当我的Controller尝试呈现模态UIImagePickerController时,我偶尔会收到此异常(大约20%的次数)。我已经在SO上对这个主题进行了相当多的研究,并遵循了similar的说明。questions关于放置各种保障措施的主题。虽然这能够减少我遇到此错误的频率,但我仍然收到它并且不确定我可以做些什么来防止它发生。我的设置如下:我的根Controller是一个标签栏Controller,然后我在其中嵌入了一个导航Controller。在这个导航Controller中,我有TakePhoto1Controller,当有人想要拍照时,我会模态地显示我的ImagePicke

ios - 警告 : Attempt to dismiss from view controller <UINavigationController: 0xb359a20> while a presentation or dismiss is in progress

在我的应用程序中我正在做的是:rootViewController->pushViewController->pushViewController->pushViewController->presentModalViewController我想从presentModalViewController直接转到rootViewController。所以我所做的是:while(theViewController=[theObjectEnumeratornextObject]){if([theViewControllermodalTransitionStyle]==UIModalTransit

ios - 错误 : "nested pop animation can result in corrupted navigation bar"

我尝试从表中获取单元格的文本(在ViewControllerB中)并将其显示在textView中(在ViewControllerA中)。第一次一切都很好,但是第二次在控制台中出现错误消息:“嵌套的弹出动画会导致损坏的导航栏在意外状态下完成导航转换。导航栏subview树可能会损坏。”我的代码是:在ViewControllerB中-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{//Retrievethevalueofcellselectedself.valeur

ios - 在 Navigation Bar 停留和 Tab Bar 消失的地方执行 segue

我的应用程序设计由UITabBarController和UINavigationController组成。我有一些UITableViews用于使用户能够选择要播放的文件-然后它转到AudioPlayer类。我有几种通过标签栏进入AudioPlayer的方法,因此我想在播放器处于事件状态后删除标签栏,只显示UINavigationController以便用户可以回到他以前的状态。如果我进行推送式转场,UITabBar和UINavigationBar都会保留。如果我进行模态转换——两者都会消失。如何让UINavigationBar保留,而UITabBar消失?

iOS Dismiss 和 Present View Controller 自定义动画

我有一个ViewController,我用以下Objective-C代码呈现:CATransition*animation=[CATransitionanimation];animation.delegate=self;animation.duration=0.3;animation.type=kCATransitionMoveIn;animation.subtype=kCATransitionFromRight;[selfpresentViewController:readeranimated:NOcompletion:nil];[reader.view.layeraddAnimat