小编Kos*_*tas的帖子

将新应用程序上传到App Store

我正在尝试将我的第一个应用程序上传到App Store.我已完成iTunes Connect所需的所有步骤,我的应用程序状态为"等待上传".

我相信下一步是使用Application Loader加载二进制文件.我对吗?

我启动Application Loader并选择"Delivery Your App",然后从组合中选择我的应用程序和"Next".

在下一个屏幕"交付您的应用程序"中有一个名为"选择..."的按钮,但我无法理解我必须选择的内容.

itunesconnect app-store

7
推荐指数
1
解决办法
2033
查看次数

无法将对象添加到NSMutableArray数组

@interface SimataDetailViewController () 

@property Simata *simata;

@property (nonatomic, copy) NSMutableArray *simataList;

@end

@implementation SimataDetailViewController

@synthesize simataDataController=_simataDataController;
@synthesize category=_category;
@synthesize simata=_simata;
@synthesize simataList=_simataList;

#pragma mark - Managing the detail item



- (void) getSimataForCategory: (NSString *) inputCategory {

    unsigned count = [self.simataDataController.masterList2 count];


    while (count--) {

        if ([[[self.simataDataController objectSimataInListAtIndex:count] categoryCode] isEqual:inputCategory]){
            self.simata= [self.simataDataController objectSimataInListAtIndex:count];

            [self.simataList addObject:self.simata];                       
        }

    }

    NSLog(@"count, %u", [self.simataList count]);


}
Run Code Online (Sandbox Code Playgroud)

您好,这是我的第一篇文章,请耐心等待.

我试图将对象添加self.simata到数组,self.simataList但数组保持零对象.对象self.simata不是nil,我没有任何错误.

我究竟做错了什么?

objective-c nsmutablearray

4
推荐指数
1
解决办法
1626
查看次数

copyWithZone错误

我使用以下代码来实例化视图SenderPlayerViewController并传递对象"session":

- (void)session:(GKSession *)session peer:(NSString *)peerID didChangeState: GKPeerConnectionState)state {
switch (state) {
    case GKPeerStateConnected:
        NSLog(@"Connected Central");
        if ([settings.playerType isEqualToString:@"SENDER"]){                 
            SenderPlayerViewController *myViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:NULL] instantiateViewControllerWithIdentifier:@"SenderPlayerViewController"];
            [self.navigationController pushViewController:myViewController animated:YES];
            myViewController.currentSession=session;

        }

        break;            
    case GKPeerStateDisconnected:
        NSLog(@"Disconnected Central");
        self.currentSession = nil;
        break;
}   
}
Run Code Online (Sandbox Code Playgroud)

视图SenderPlayerViewController的头文件是:

@interface CentralViewController : UIViewController {
Settings *settings;}
@property (nonatomic, copy) GKSession *currentSession;

@end       
Run Code Online (Sandbox Code Playgroud)

执行代码时,我收到以下错误:

[GKSession copyWithZone:]: unrecognized selector sent to instance 0x9661200
Run Code Online (Sandbox Code Playgroud)

你能帮忙吗?

提前致谢!

memory-management objective-c

2
推荐指数
1
解决办法
594
查看次数