草庐IT

developers_guide_protocol

全部标签

ios - Apple Developer Program 团队角色上的空白圆圈

这个空白圆圈在AppleDeveloperProgramTeamRoles上意味着什么? 最佳答案 ●--表示对指定角色和的访问“可用”○--这表示“Access需要Xcode7或更高版本。”这是Apple的引用文档:ProgramRolesandiTunesConnectRoles 关于ios-AppleDeveloperProgram团队角色上的空白圆圈,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.c

ios - 如果我更改与 Apple Developer 帐户关联的 apple id 会怎样?

如果我更改与我的开发者帐户关联的Appleid(电子邮件),是否会影响那些正在运行的应用程序?这样做有什么缺点吗?NOTE:Newappleidwillnotbeassociatedwithanyotherdeveloperaccount.Imeanitwillbefreshappleidcreated. 最佳答案 不,它不会影响旧的Live应用程序,它们会按原样运行。仅对于新应用程序,他们通过新地址联系旧应用程序,他们与您的旧应用程序通信。 关于ios-如果我更改与AppleDevel

ios - 我如何使用 UITextInput 协议(protocol)关闭键盘?

我想在点击完成按钮时关闭键盘。UITextInput协议(protocol)中是否有一些函数可以用来关闭键盘?谢谢大家的回答~ 最佳答案 这很简单[textFieldresignFirstResponder]; 关于ios-我如何使用UITextInput协议(protocol)关闭键盘?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/7006947/

ios - Xcode 错误 Command/Applications/Xcode.app/Contents/Developer/usr/bin/momc 失败,退出代码为 1

DataModelCompile/Users/maxxx/Library/Developer/Xcode/DerivedData/Pectopatop-axonkvxdjwugklfuanzpglrsyquj/Build/Products/Debug-iphoneos/Pectopatop.app/XMPPRoster.momPectopatop/../../Libraries/XMPPFramework/Extensions/名册/CoreDataStorage/XMPPRoster.xcdatamodelcd/Users/maxxx/ios/PectopatopsetenvPATH

objective-c - 术语:方法在协议(protocol)中是___( Objective-C )

关于术语的一个简单问题:在下面的示例中(摘自Apple文档),我们会说这些方法是“定义的”、“声明的”还是其他什么?protocolXYZPieChartViewDataSource-(NSUInteger)numberOfSegments;-(CGFloat)sizeOfSegmentAtIndex:(NSUInteger)segmentIndex;@optional-(NSString*)titleForSegmentAtIndex:(NSUInteger)segmentIndex;@end例如,“您可以在第2行看到numberOfSegments方法是__。因此,符合此协议(pr

ios - 具有协议(protocol)继承的 objc 不兼容指针类型

我正在运行Xcode5.1版,iOSSDK7.1版。以下是同一个文件中的一些示例声明:@protocolA@end@protocolB@end@interfaceSomeObject:NSObject@end@interfaceSomeContainer:NSObject-(id)pop;@endXcode在以下代码中生成警告:SomeContainer*container=[[SomeContaineralloc]init];SomeObject*obj=[containerpop];//Warning:Initializing'SomeObject*__strong'withand

ios - 无法将协议(protocol)中声明的 UIView 的 IBOutlet 连接到 xib 实体

我在协议(protocol)中声明了这个IBOutlet:@protocolSomeProtocol@property(nonatomic,strong)IBOutletUIView*view;@end然后有一个继承自这个协议(protocol)的类://.h@interfaceSomeClass:NSObject@end//.m@implementationTSNFactoryViews@synthesizeview=_view;@ned在xib文件中,我将SomeClass设置为类所有者,这样我就可以看到view导出并将其连接到适当的xib实例。在XCode4中,我对这个概念没有异

ios - objc中如何判断一个selector包含在一个protocol中?谢谢

出于某种原因,我想将所有UITableViewDelegate方法转发给另一个对象。这是我写的代码,但是因为UITableViewDelegate中有太多方法。我必须写很多ifelse比较每个方法。-(id)forwardingTargetForSelector:(SEL)aSelector{NSString*selector=NSStringFromSelector(aSelector);if([selectorisEqualToString:@"tableView:didSelectRowAtIndexPath:"]){returnself.outDelegate;}else{re

ios - 我必须在 Apple Developer Program 中注册 iOS 设备吗?

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭5年前。Improvethisquestion我制作了我的应用注册AppleDeveloper帐户并支付了99美元现在我想发布我的应用程序。但是Xcode说:"UnabletocreateaprovisioningprofilebecauseyourteamhasnodevicesregisteredintheMemberCenter.Pleaseconnectadevice,enableitfordevelopment,andaddi

objective-c - 如何将值传递给@protocol

我正在尝试实现一个协议(protocol)。我查看了文档here我理解这些概念,尽管我认为我遗漏了一些东西。我正在尝试创建一个View,用户点击TableView中的文件名会触发“didSelectRowAtIndexPath”,这将反过来通知委托(delegate)人用户已经选择了一个文件(在委托(delegate)中触发didSelectFileName)并传递文件名。我已经声明协议(protocol)如下;@protocolFileList-(void)didSelectFileName:(NSString*)fileName;@end我的问题是:如何设置“fileName”值,