Asked 30+ days ago
7 Jul 2017
Views 171
jaman

jaman posted

difference between nil and NULL in objective c


    NSInteger  selectedType;




    if( selectedPaymentType != nil ){
}


here crash at warning that comparison between pointer and integer ('NSInteger' and 'void *' )

here nil is not means simply 0
i tried NULL instead nil but same warning
Post Answer