草庐IT

presenters

全部标签

ios - MonoTouch,ZXing : Presenting ZXingScannerViewController failed

所以在我的应用程序开始时,用户必须能够扫描二维码。在应用程序设置中,用户可以扫描另一个条形码以更改设置中的一些数据。在我的应用程序扫描仪开始时工作正常,但是当我尝试在settingVC中扫描条形码时,我收到以下警告:Warning:AttempttopresentZXing.Mobile.ZXingScannerViewController:0x18036dc0onUINavigationController:0x16d8afe0whoseviewisnotinthewindowhierarchy!我已经尝试在viewDidAppear上调用扫描,但我收到了相同的警告。button_S

iOS Present Viewcontroller 出现黑屏

我正在尝试使用StoryBoards创建的当前ViewController:AuthViewController*authViewController=[[AuthViewControlleralloc]init];UINavigationController*nav=[[UINavigationControlleralloc]initWithRootViewController:authViewController];UIViewController*vc=[[[[UIApplicationsharedApplication]windows]firstObject]rootViewC

Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependen

前言:使用vuecreate创建项目后,通过npmrunserve报以下错误; 错误:@vitejs/plugin-vue需要vue(>=3.2.13)或@vue/compiler-sfc存在于依赖树中。然后按照错误提示进行了npminstall'@vue/compiler-sfc'--save-dev;安装完毕后再次进行npmrunserve还是报以上错误。开始找不同:对比之前搭建的正常项目,发现不同点:(开始按照自己的想法尝试解决问题) 1、执行npmuninstallvue卸载非正常项目中的vue依赖包 2、再执行 npminstallvue@3.2.13--save-dev 把vue依

iOS UISearchController 崩溃 : Application tried to present modal view controller on itself

根据crashlytics,以下崩溃正在发生(很少)。Applicationtriedtopresentmodalviewcontrolleronitself.Presentingcontrolleris.我根本无法复制这个问题。这就是我设置UISearchController的方式。self.searchController=[[UISearchControlleralloc]initWithSearchResultsController:nil];self.searchController.dimsBackgroundDuringPresentation=NO;self.searc

iphone - Xcode Objective-C 转场 "Presentation in Progress"

我正在尝试开发一个允许用户使用AFNetworking登录的应用程序。我的数据库设置正确,一切似乎都工作正常,除非用户首次登录。我所拥有的非常简单:[[APIsharedInstance]commandWithParams:paramsonCompletion:^(NSDictionary*json){//resultreturnedNSDictionary*res=[[jsonobjectForKey:@"result"]objectAtIndex:0];if([jsonobjectForKey:@"error"]==nil&&[[resobjectForKey:@"UserID"]

the “@esbuild/darwin-x64“ package is present but this platform needs the “@esbuild/darwin-arm64“

搭建vite运用ts项目时,为了配置别名./src=@,引入了importpathfrom'path',出现报错,不存在path,但是path是存在node环境中的,所以就引入对ts进行声明了。使用npmi-D@types/node解决了path报错,但是当再次运行的时候就出现了the"@esbuild/darwin-x64"packageispresentbutthisplatformneedsthe"@esbuild/darwin-arm64"packageinstead.看了一下安装时候的记录,安装的是@esbuild/darwin-arm64所以卸载npmuninstall-D@typ

wind按照docker desk启动报错Docker Desktop Docker Desktop - Windows Hypervisor is not present Docker Des

1.启动bios 打开虚拟化2.程序和功能 启用hyperv  3.没有上面的hyperv使用如下命令dir/b%SystemRoot%\servicing\Packages\*Hyper-V*.mum>hyper-v.txtfor/f%%iin('findstr/i.hyper-v.txt2^>nul')dodism/online/norestart/add-package:"%SystemRoot%\servicing\Packages\%%i"delhyper-v.txtDism/online/enable-feature/featurename:Microsoft-Hyper-V-Al

ios - 单元测试 : Warning Presenting View on View whose View is not in window hierachy

我有一个带有UICollectionView的UIViewController,它不是我的应用程序的根,而是通过segue到达的。这个UICollectionView有UICollectionViewCells,它有一个带有UITapGestureRecognizer的imageView,在触发时帮助呈现UIAlertViewController。当我收到此警告时,我一直无法测试我的showalert方法:“尝试在View不在窗口层次结构中的*上呈现!”下面是我的代码片段classViewControllerTests:XCTestCase{varvc:ViewController!o

ios - 导航 Controller :willShowViewController:animated: is not called after popToRootViewControllerAnimated in presented view controller

我有UINavigationController和几个推送的ViewController。UPD:最后按下的Controller模态呈现另一个Controller。另外,我在navigationController:willShowViewController:animated:中有一些逻辑UINavigationControllerDelegate。UPD:导航Controller是它自己的委托(delegate)。委托(delegate)在viewDidLoad方法中设置。问题当我尝试从呈现的ViewController中以编程方式关闭所有Controller时出现://Close

iOS 8 swift : How to keep the keyboard displayed when the UIAlercontroller is presented modally?

上下文非常简单,有一个带有文本字段的UIViewcontroller,用于输入电话号码。文本字段处于使用键盘的编辑模式。输入数字后,用户可以点击显示警报Controller的按钮。由于警报以模态方式呈现,它覆盖了UIViewcontroller并移除了键盘,因此不再启用编辑。因此我的问题是,应该怎么做才能使键盘显示在警报后面? 最佳答案 这个解决方案有效letrootViewController:UIViewController=UIApplication.sharedApplication().windows[1].rootVie