草庐IT

human-interface-guidelines

全部标签

ios - WatchKit 错误 - 无法找到要实例化的接口(interface) Controller 类 ''

每当我在WKIInterfaceController的子类中建立任何连接时,我都会收到错误WatchKiterror-unabletofindinterfacecontrollerclass'myClass'toinstantiate并且事件指示器显示在模拟器和View不加载。断开所有连接,View显示正确但仍然报错尝试过Unabletofindinterfacecontrollerclass'InterfaceController'toinstantiateWatchKit:unabletofindinterfacecontrollerclassWatchKitreloadRootC

ios - WatchKit 错误 - 无法找到要实例化的接口(interface) Controller 类 ''

每当我在WKIInterfaceController的子类中建立任何连接时,我都会收到错误WatchKiterror-unabletofindinterfacecontrollerclass'myClass'toinstantiate并且事件指示器显示在模拟器和View不加载。断开所有连接,View显示正确但仍然报错尝试过Unabletofindinterfacecontrollerclass'InterfaceController'toinstantiateWatchKit:unabletofindinterfacecontrollerclassWatchKitreloadRootC

objective-c - 得到 "Duplicate Interface Definition"错误,肯定要#import ing 头文件

我正在帮助一个iOS项目,其中包含AppDelegate中许多不同类共有的许多方法和定义。因此,在这些类的每一个中,在.h文件中,我使用#import"AppDelegate.h"。在我需要访问已经将AppDelegate导入到另一个导入AppDelegate的类中的那些类中之前,这工作正常。此时,我收到AppDelegate的重复接口(interface)定义错误。好吧,这看起来很公平。我已经将AppDelegate导入到我正在导入的文件中,因此AppDelegate是从两个不同的地方导入的。所以我删除了AppDelegate行,一切都很好。但是当我需要导入两个都需要导入AppDel

objective-c - 得到 "Duplicate Interface Definition"错误,肯定要#import ing 头文件

我正在帮助一个iOS项目,其中包含AppDelegate中许多不同类共有的许多方法和定义。因此,在这些类的每一个中,在.h文件中,我使用#import"AppDelegate.h"。在我需要访问已经将AppDelegate导入到另一个导入AppDelegate的类中的那些类中之前,这工作正常。此时,我收到AppDelegate的重复接口(interface)定义错误。好吧,这看起来很公平。我已经将AppDelegate导入到我正在导入的文件中,因此AppDelegate是从两个不同的地方导入的。所以我删除了AppDelegate行,一切都很好。但是当我需要导入两个都需要导入AppDel

iphone - 我的 iphone 应用程序因这个原因被拒绝 "We found that your app does not follow the iOS Data Storage Guidelines,..."

我的iPhone应用最近被拒绝了,原因如下:“我们发现您的应用不符合iOS数据存储指南,这不符合AppStore审核指南。”对于这个应用程序,我将数据库(sqlite文件)存储在iOS5.0.1及更高版本的/Documents/目录中,对于iOS5.0及以下版本,我使用了Library/Cache目录。对于我从服务器下载的其他数据,如PDF和艺术品图像,我采用与上述相同的方法,例如:iOS5.0.1及更高版本:将这些数据保存到/Documents/目录中iOS5.0及更早版本:将数据保存到Library/Cache目录。这种方法是否正确?根据Apple指南:重要:新的“不备份”属性仅供

iphone - 我的 iphone 应用程序因这个原因被拒绝 "We found that your app does not follow the iOS Data Storage Guidelines,..."

我的iPhone应用最近被拒绝了,原因如下:“我们发现您的应用不符合iOS数据存储指南,这不符合AppStore审核指南。”对于这个应用程序,我将数据库(sqlite文件)存储在iOS5.0.1及更高版本的/Documents/目录中,对于iOS5.0及以下版本,我使用了Library/Cache目录。对于我从服务器下载的其他数据,如PDF和艺术品图像,我采用与上述相同的方法,例如:iOS5.0.1及更高版本:将这些数据保存到/Documents/目录中iOS5.0及更早版本:将数据保存到Library/Cache目录。这种方法是否正确?根据Apple指南:重要:新的“不备份”属性仅供

ios - 在公共(public)接口(interface)和私有(private)接口(interface)/实现文件上声明协议(protocol)的区别

以这些方式声明这些协议(protocol)有什么区别?仅仅是.h文件中的那些是公开的吗?in.hfile:@interfaceTestViewController:UIViewControllerin.mfile:@interfaceTestViewController() 最佳答案 当您将协议(protocol)添加到.h文件时,这会告诉包含头文件的每个人该类遵守给定的协议(protocol)。当您将协议(protocol)添加到.m文件时,这实际上是一个私有(private)指示,表明该类遵守协议(protocol)。只有实现知

ios - 在公共(public)接口(interface)和私有(private)接口(interface)/实现文件上声明协议(protocol)的区别

以这些方式声明这些协议(protocol)有什么区别?仅仅是.h文件中的那些是公开的吗?in.hfile:@interfaceTestViewController:UIViewControllerin.mfile:@interfaceTestViewController() 最佳答案 当您将协议(protocol)添加到.h文件时,这会告诉包含头文件的每个人该类遵守给定的协议(protocol)。当您将协议(protocol)添加到.m文件时,这实际上是一个私有(private)指示,表明该类遵守协议(protocol)。只有实现知

ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?

“错误:语义问题:无法静态分配接口(interface)类型”是什么意思?这是错误的行:UIViewControllerimageWithCaptionController=[[UIViewControlleralloc]initWithNibName:@"ImageWIthCaption"bundle:nibBundleOrNil];谢谢帕特里克 最佳答案 您可能在imageWithCaptionController之前缺少“*”,您的行应该是UIViewController*imageWithCaptionController=

ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?

“错误:语义问题:无法静态分配接口(interface)类型”是什么意思?这是错误的行:UIViewControllerimageWithCaptionController=[[UIViewControlleralloc]initWithNibName:@"ImageWIthCaption"bundle:nibBundleOrNil];谢谢帕特里克 最佳答案 您可能在imageWithCaptionController之前缺少“*”,您的行应该是UIViewController*imageWithCaptionController=