草庐IT

some_class

全部标签

ios - 不兼容的指针类型将 'Class' 发送到类型为 'id<UIActionSheetDelegate>' 的参数

我收到警告Incompatiblepointertypessending'Class'toparameteroftype'id'intheline"delegate:self"below:+(SHKActionSheet*)actionSheetForType:(SHKShareType)type{SHKActionSheet*as=[[SHKActionSheetalloc]initWithTitle:SHKLocalizedString(@"Share")delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilothe

SOME/IP技术总结

一、参考资料源码库:GitHub-COVESA/vsomeip:AnimplementationofScalableservice-OrientedMiddlewarEoverIPGitHub-COVESA/capicxx-core-runtime:CommonAPIC++coreruntimeGitHub-COVESA/capicxx-someip-runtime:CommonAPIC++SOMEIPruntimeGitHub-COVESA/capicxx-core-tools:CommonAPIC++coretools介绍文档:Home·COVESA/capicxx-core-toolsW

ios - 如何访问父类(super class)中声明的 IBOutlets?

我目前正在重构几个共享一些IBOutlet和IBAction方法的ViewController。我将socket声明和IBAction方法移动到一个父类(superclass)中,将它们从子类中删除。现在,当我打开InterfaceBuilder时,我发现我看不到父类(superclass)中声明的导出或操作。连接仍然存在,因为我在重构之前将它们连接起来,但它们是灰色的。(重要的是要注意连接也可以工作,因为我的Action是在按下按钮时触发的,并且我的socket已正确修改。)问题是,如何让界面生成器识别父类(superclass)的导出?这可能吗?如果不可能,你们都有什么建议?(只是

ios - 如何访问父类(super class)中声明的 IBOutlets?

我目前正在重构几个共享一些IBOutlet和IBAction方法的ViewController。我将socket声明和IBAction方法移动到一个父类(superclass)中,将它们从子类中删除。现在,当我打开InterfaceBuilder时,我发现我看不到父类(superclass)中声明的导出或操作。连接仍然存在,因为我在重构之前将它们连接起来,但它们是灰色的。(重要的是要注意连接也可以工作,因为我的Action是在按下按钮时触发的,并且我的socket已正确修改。)问题是,如何让界面生成器识别父类(superclass)的导出?这可能吗?如果不可能,你们都有什么建议?(只是

objective-c - Objective-C : Buttons created from subclass of UIButton class not working

我正在创建UIButton的子类,以便创建我自己的自定义按钮。我的代码如下://interfacefile(subclassofuIButton@interfaceUICustomButton:UIButton{Answer*answer;NSString*btnType;}@property(nonatomic,retain)Answer*answer;@property(nonatomic,assign)NSString*btnType;-(id)initWithAnswer:(Answer*)ansandButtonType:(NSString*)typeandFrame:(CG

objective-c - Objective-C : Buttons created from subclass of UIButton class not working

我正在创建UIButton的子类,以便创建我自己的自定义按钮。我的代码如下://interfacefile(subclassofuIButton@interfaceUICustomButton:UIButton{Answer*answer;NSString*btnType;}@property(nonatomic,retain)Answer*answer;@property(nonatomic,assign)NSString*btnType;-(id)initWithAnswer:(Answer*)ansandButtonType:(NSString*)typeandFrame:(CG

ios - 警告 ITMS-90080 : "The executable ' Payload/myapp. app/Frameworks/some-framework.framework' 不是与位置无关的可执行文件

我以前能够毫无问题地提交我的申请。我的工作流程中唯一改变的部分是使用Sourcetree。在对以下框架进行更新后,我在提交到iOSAppStore时收到此警告。我还收到一封电子邮件,其中包含:Non-PIEBinary-Theexecutable'Payload/myapp.app/Frameworks/Alamofire.framework'isnotaPositionIndependentExecutable.PleaseensurethatyourbuildsettingsareconfiguredtocreatePIEexecutables.Formoreinformation

ios - 警告 ITMS-90080 : "The executable ' Payload/myapp. app/Frameworks/some-framework.framework' 不是与位置无关的可执行文件

我以前能够毫无问题地提交我的申请。我的工作流程中唯一改变的部分是使用Sourcetree。在对以下框架进行更新后,我在提交到iOSAppStore时收到此警告。我还收到一封电子邮件,其中包含:Non-PIEBinary-Theexecutable'Payload/myapp.app/Frameworks/Alamofire.framework'isnotaPositionIndependentExecutable.PleaseensurethatyourbuildsettingsareconfiguredtocreatePIEexecutables.Formoreinformation

Objective-C:重写父类(super class) getter 并尝试访问 ivar 时出现编译器错误

我正在构建一个iOS6应用程序。我有一个继承自父类(superclass)TDWeapon的类TDBeam。父类(superclass)TDWeapon在TDWeapon.h文件中声明了一个@property:@interfaceTDWeapon:UIView@property(nonatomic)intdamage;@end我没有明确地@synthesize属性,因为我让Xcode自动这样做。在子类TDBeam中,我覆盖了TDBeam.m文件中的getter:#import"TDBeam.h"@implementationTDBeam-(int)damage{return_damag

Objective-C:重写父类(super class) getter 并尝试访问 ivar 时出现编译器错误

我正在构建一个iOS6应用程序。我有一个继承自父类(superclass)TDWeapon的类TDBeam。父类(superclass)TDWeapon在TDWeapon.h文件中声明了一个@property:@interfaceTDWeapon:UIView@property(nonatomic)intdamage;@end我没有明确地@synthesize属性,因为我让Xcode自动这样做。在子类TDBeam中,我覆盖了TDBeam.m文件中的getter:#import"TDBeam.h"@implementationTDBeam-(int)damage{return_damag