我是一名自雇的iOS开发人员,因此拥有自己的iOS发布会员资格.
几天后,我在一个团队中担任开发人员.我的苹果帐户已添加到他们的iTunes Connect/Users和Roles中.它可以工作,因为我可以访问我们开发的当前应用程序的应用程序详细信息.
但是,我无法在Xcode上做到正确.所以Xcode说捆绑ID不对,因为我没有配置文件.
在"项目>常规>身份>团队"中,我只能选择自己的帐户,而我看不到我所属的新团队.我在Xcode首选项的"帐户"页面中都没有看到它.
团队负责人为我创建了配置文件.它没有解决问题.
问题:如何在Xcode中添加我们所属的新团队?
我的工作是关于`UITableView.每次运行我的项目时,都会出现此错误:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell1 - must register a nib or a class for the identifier or connect a prototype cell in a storyboard
Run Code Online (Sandbox Code Playgroud)
我在故事板中检查了我的单元标识符一百次,在我的代码中是相同的.代码(defaut代码UITableViewController):
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell1";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
// Configure the cell...
return cell;
}
Run Code Online (Sandbox Code Playgroud)
表视图单元属性的图片:

我创建并实现了UITableViewCell我的单元格的子类.
知道为什么这不起作用吗?
任何方式(代码行)知道单元格的标识符是什么?
谢谢
编辑:我的界面构建器的屏幕截图.

编辑2:customCell.h的文本
#import <UIKit/UIKit.h>
@interface customCell : UITableViewCell
@end …Run Code Online (Sandbox Code Playgroud) 当我运行我的应用程序时,我找到一个信号SIGABRT线程.以下是错误消息:[__ NSCFConstantString _isResizable]:无法识别的选择器发送到实例0x5c20
问题来自[[self myCollectionView] setDataSource:self]; 因为它在评论时消失了.
根据我的理解,myCollectionView数据源和self的类型不一样.这就是我有错误的原因.
谢谢你的帮助
皮埃尔
CalViewController.h
#import <UIKit/UIKit.h>
@interface CalViewController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate>
@property (weak, nonatomic) IBOutlet UICollectionView *myCollectionView;
@end
Run Code Online (Sandbox Code Playgroud)
CalViewController.m
#import "CalViewController.h"
#import "CustomCell.h"
@interface CalViewController ()
{
NSArray *arrayOfImages;
NSArray *arrayOfDescriptions;
}
@end
@implementation CalViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[[self myCollectionView]setDataSource:self];
[[self myCollectionView]setDelegate:self];
arrayOfImages = [[NSArray alloc]initWithObjects:@"chibre.jpg",nil];
arrayOfDescriptions =[[NSArray alloc]initWithObjects:@"Test",nil];
}
- (NSInteger) collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return [arrayOfDescriptions count];
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellIdentifier=@"Cell"; …Run Code Online (Sandbox Code Playgroud)