IBM Worklight 6.0 - iOS7上的App Center无法打开 [英] IBM Worklight 6.0 - App Center on iOS7 fails to open

查看:159
本文介绍了IBM Worklight 6.0 - iOS7上的App Center无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Xcode 5.0.2构建IBMAppCenter应用程序之后,

在iPhone上运行.ipa时,很遗憾无效。

After building the IBMAppCenter application with Xcode 5.0.2,
When running the .ipa on an iPhone it unfortunately doesn't work.

单击打开的应用程序时,会显示启动图像几秒钟,但随后关闭而不会出现错误。

When clicking the app it opens up, shows the splash image for a few seconds, but then closes without throwing an error.

这是一个已知错误吗?

推荐答案

确保您已按照以下有关如何启用iOS 7 AppCenter应用程序的说明进行操作,详见以下IBM技术说明:< a href =http://www-01.ibm.com/support/docview.wss?uid=swg27039574 =nofollow> http://www-01.ibm.com/support/docview.wss? uid = swg27039574

Make sure that you have followed the instructions on how to enable the AppCenter application for iOS 7, as detailed in the following IBM technote: http://www-01.ibm.com/support/docview.wss?uid=swg27039574

我甚至会说确保你正在运行正确版本的Worklight。

请仔细阅读技术支持。

I'd even say to make sure you are running the correct version of Worklight.
Please carefully read the technote.

复制/粘贴:

Copy/paste:

启用Application Center客户端

完成以下步骤以启用Application Center Client在iOS 7上运行:

Complete the following steps to enable your Application Center Client to run on iOS 7:


  1. 如文档所述,将App Center项目导入Eclipse。

  1. Import the App Center project into Eclipse as the documentation states.

使用Worklight Studio向导创建另一个Worklight项目并添加iPhone环境。

Use the Worklight Studio wizard to create another Worklight project and add an iPhone environment.

复制 apps / appName / iphone / native / WorklightSDK / libWorklightStaticLibProject.a 到App Center项目的文件。使用相同的名称覆盖现有文件。

Copy the apps/appName/iphone/native/WorklightSDK/libWorklightStaticLibProject.a file to the App Center project. Overlay the existing file by using the same name.

CDVMainViewController中添加以下代码生成的Worklight class( CDVMainViewController.m )。此代码处理iOS 7状态栏设计更改。

Add the following code in the CDVMainViewController Worklight generated class (CDVMainViewController.m). This code handles the iOS 7 status bar design change.


- (UIStatusBarStyle)preferredStatusBarStyle
{
  return UIStatusBarStyleLightContent;
}

- (void)viewWillAppear:(BOOL)animated
{
CGFloat version = [[UIDevice currentDevice].systemVersion floatValue];
  if (version >= 7) {
     // iOS 7 or above
     CGRect oldBounds = [self.view bounds];
     CGRect newViewBounds = CGRectMake( 0, -10, oldBounds.size.width,
        oldBounds.size.height-20 );
     CGRect newWebViewBounds = CGRectMake( 0, -20, oldBounds.size.width,
        oldBounds.size.height-40 );
     UIColor *headerColor = 
        [UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:1.0f];
     [self.view setBackgroundColor:headerColor];
     [self.view setBounds:newViewBounds];
     [self.webView setBounds:newWebViewBounds];
  } 
  [super viewWillAppear:animated];
}



这篇关于IBM Worklight 6.0 - iOS7上的App Center无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆