Objective-C Language Basic Data Types

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • BOOL havePlutonium = YES;    // Direct assigment
  • BOOL fastEnough = (car.speedInMPH >= 88);    // Comparison expression
  • BOOL fluxCapacitorActive = (havePlutonium && fastEnough);    // Boolean expression
  •  
  • id somethingWicked = [witchesCupboard lastObject];    // Retrieve untyped object
  • id powder = prepareWickedIngredient(somethingWicked);    // Pass and return
  • if ([ingredient isKindOfClass:[Toad class]]) {    // Test runtime type


Got any Objective-C Language Question?