Reprodução de Vídeo no xCode6
Olá Pessoal,
Estou tentando fazer a reprodução de um vídeo no xCode6, porém não está aceitando. Já verifiquei todo o código, mas apresenta um erro de incompatibilidade que não consegui achar.
ERRO
No caso do NSInteger *c
implicit conversion of an Objective-C pointer to "NSInterger"(aka 'int') is disallowed with ARC
incompatible pointer types initializing 'NSInterger'(aka 'int') with an expression of type 'id'
No caso do UIAlerView
exatamente no na declaração message:c
incompatible pointer types initializing 'NSInterger'(aka 'int') to parameter of type 'NSString'
implicit conversion of a non-Objective-C pointer type 'NSInterger' (aka 'int') to NSString is is disallowed with ARC
Obrigado!
Bruno
Estou tentando fazer a reprodução de um vídeo no xCode6, porém não está aceitando. Já verifiquei todo o código, mas apresenta um erro de incompatibilidade que não consegui achar.
- (IBAction)BClicked:(id)sender
{
NSInteger row = [MyPickerView selectedRowInComponent:0];
NSInteger *c = [pickerArray objectAtIndex:row];
UIAlertView *msg = [[UIAlertView alloc]
initWithTitle:@"Picker View Value"
message:c
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[msg show];
}
ERRO
No caso do NSInteger *c
implicit conversion of an Objective-C pointer to "NSInterger"(aka 'int') is disallowed with ARC
incompatible pointer types initializing 'NSInterger'(aka 'int') with an expression of type 'id'
No caso do UIAlerView
exatamente no na declaração message:c
incompatible pointer types initializing 'NSInterger'(aka 'int') to parameter of type 'NSString'
implicit conversion of a non-Objective-C pointer type 'NSInterger' (aka 'int') to NSString is is disallowed with ARC
Obrigado!
Bruno
Antonio Bruno
Curtidas 0