我在真正的iPad Mini设备上显示启动画面时遇到了一些麻烦.当我运行我的应用程序时,会显示蓝屏.我正在使用资产目录来包含图像.当我在iPhone或iPad 2模拟器上运行时,启动屏幕显示完美!在我的资产目录中的Contents.json文件中,有4个用于iPad的图像.他们是:
- Default-portrait.png(768x1004)
- Default-Portrait@2x.png(1536x2008)
- Default-Landscape.png(1004x768)
- Default-Landscape@2x.png(2008x1536)
取消选中info.plist中的状态栏样式"在应用程序启动期间隐藏"选项.
我在Xamarin启动屏幕指南中遵循了"管理启动屏幕与资产目录"步骤:http://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/#asset-catalogs
如果有人知道我的错误是什么,请告诉我!=]
PS:抱歉英文不好!
如何用java中的字符串中的空字符串""替换多个单词.我尝试使用for循环来替换单引号中的那些,然后在下面的数组中添加,但它会替换每个打印输出一个单词.
String str = "this house 'is' really 'big' and 'attractive'.";
String[] values={"is","big","attractive"};
for(String s: values){
String replaced = str.replace(s, "");
System.out.println( replaced );
}
Run Code Online (Sandbox Code Playgroud)
我得到这个输出:
> this house ' ' really 'big' and 'attractive'.
> this house 'is' really ' ' and 'attractive'.
> this house 'is' really 'big' and ' '.
Run Code Online (Sandbox Code Playgroud)
我需要的是这个:
> this house ' ' really ' ' and ' '.
Run Code Online (Sandbox Code Playgroud)