草庐IT

half-screen-dialog

全部标签

android - ionic 2 : What happens during splash screen?

我构建了一个Ionic2应用程序,我想知道在应用程序启动画面期间究竟发生了什么?您能否建议我使用高效的分析工具来分析我的应用程序的所有性能,即使是在启动画面期间?我的应用程序在生产模式下会在6秒内完成初始化(Honor6xpro)。我觉得太多了,你怎么看?感谢您的帮助!我的config.xmlMyAppMobileversionofMyApptoto我的platform.ready函数:platform.ready().then(()=>{StatusBar.styleDefault();Splashscreen.hide();}); 最佳答案

iOS swift : Constraints did not update on screen

晚上,ScrollView约束有问题。这是我的代码://whenthekeyboardisshown,moveupsomeelements@objcfunckeyboardWillShow(notification:NSNotification){ifletkeyboardSize=(notification.userInfo?[UIKeyboardFrameEndUserInfoKey]as?NSValue)?.cgRectValue{//Bringupthescrollviewprint(scrollViewBottomConstraint.constant)self.scroll

ios - UIImageView 在不同的设备上保留 Storyboard "preview screen bounds"- 框架不根据屏幕尺寸更新

当我在模拟器中运行我的应用程序时,我的Storyboard预览选择手机时仍然会获取高度和体重。不应该选择哪种模拟器?例如:Storyboard预览选择iPhoneSE然后ImageView重量=96高度=92Storyboard预览选择iPhone8然后ImageView权重=112.5高度=108.5但是当我的storyboard预览时选择iPhoneSE和simulator不管选择哪个像iPhone8,iPhoneX...重量=96高度=92为什么?最奇怪的是当我选择不同的Storyboard预览时,同一个模拟器,我得到不同的尺寸......print(self.img.frame

No valid Maven installation found. Either set the home directory in the configuration dialog or set ...

这个错误提示是Maven构建工具在运行时无法找到有效的安装目录。解决此问题的方法有两种:在Maven配置对话框中设置Maven安装目录的路径。在系统环境变量中设置M2_HOME变量为Maven安装目录的路径。通过执行上述方法之一,就可以让Maven找到正确的安装目录,从而成功运行。

ios - bezierPathWithRoundedRect : gives bad result on retina screen

我使用一种方法在我的iOS应用程序上获取圆形图片,这在iphone3上运行得非常好。我的问题是,一旦我在iphone4或更高版本上尝试它,图片质量就会变差。有什么办法可以让我的代码得到高分辨率的圆形图片吗?-(void)setRoundedView:(UIImageView*)imageViewpicture:(UIImage*)picturetoDiameter:(float)newSize{UIGraphicsBeginImageContextWithOptions(imageView.bounds.size,NO,1.0);[[UIBezierPathbezierPathWith

ios - 如何继续绘制Rect : when finger on screen

我有当前代码:-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{self.objectPoint=[[touchesanyObject]locationInView:self];floatx,y;if(self.objectPoint.x>self.objectPoint.x){x=self.objectPoint.x+1;}elsex=self.objectPoint.x-1;if(self.fingerPoint.y>self.objectPoint.y){y=self.objectPoint.y+1;}els

ios - SpriteKit - CPU/Memory leak on segue back to main screen

我有一个应用程序,其中有一个SpriteKit游戏和一个主菜单。单击主页按钮后,CPU/内存不会减少。我已经尝试了一些东西,这里的代码可能是多余的,但它还没有为我工作。每当触摸主页按钮时执行:-(void)goToMainMenu{[selfperformSegueWithIdentifier:@"mainmenu"sender:self];[self.spriteViewremoveFromSuperview];self.scene=nil;[self.spriteViewpresentScene:nil];self.spriteView=nil;self.view=nil;}从主菜

iOS AVPlayer : pause video when screen locks

我正在使用AVPlayerViewController来显示带有AVPlayer的视频。当我锁定手机屏幕时,视频一直在后台播放。我怎样才能避免这种情况? 最佳答案 尝试禁用音频和Airplay的后台模式-(void)applicationDidEnterBackground:(UIApplication*)application{//pausethevideohere}-(void)applicationWillEnterForeground:(UIApplication*)application{//resumevideowhen

element ui Dialog 对话框关闭后——清除表单的效验方法(更简便写法)

效果展示:主要代码:在关闭弹窗时有个组件的关闭的回调@close='cancel'调用这cancel方法就可以实现关闭的同时清除表单效验cancel(){//关闭弹窗的同时清除表效验内容   this.clone()   this.reset('ruleForm')//ruleForm是:model表单绑定的  }, clone(){//关闭弹窗   this.dialogVisible=false }, reset(formName){//清除表效验内容this.from={}   this.$refs[formName].resetFields(); },完整代码展示父组件://isrej

ios - Ionic cordova-plugin-screen-orientation 在 Ios 上不再起作用

自从我更新了所有内容后,我在使用screenorientationplugin时遇到了一些问题。我已经有一个正在运行的应用程序,一切正常。但是由于我将每个插件以及cordova和ionic环境更新为最新版本,我的屏幕方向插件不再起作用。config.xml配置已安装的插件cordova-plugin-screen-orientation1.4.0"ScreenOrientation"org.adlotto.cordova.recheck-screen-orientation0.1.0"RecheckScreenOrientation"Cordova版本6.1.1ionic版本1.7.1