August 9, 2010 - 11:56 am
Aright, what’s up with this? This code using a double works just fine: double myDouble = 2.2; NSLog(@"myDouble %f", myDouble); [self testDouble:myDouble]; - (void) testDouble:(double)myDouble { NSLog(@"testDouble %f", myDouble); } This code prints: myDouble 2.200000 testDouble 2.200000 No surprises there. But the same code using a float behaves very strangely: float myFloat = 3.3; NSLog(@"myFloat [...]
August 9, 2010 - 11:56 am
Aright, what’s up with this? This code using a double works just fine: double myDouble = 2.2; NSLog(@"myDouble %f", myDouble); [self testDouble:myDouble]; - (void) testDouble:(double)myDouble { NSLog(@"testDouble %f", myDouble); } This code prints: myDouble 2.200000 testDouble 2.200000 No surprises there. But the same code using a float behaves very strangely: float myFloat = 3.3; NSLog(@"myFloat [...]
New to Objective-C is the block syntax. A block is a section of code that is grouped together and designed to be treated like one statement. Blocks also package up the lexical scope of variables and functions within its environment. Blocks are found in many languages including, but not limited to, Ruby, Javascript and Lisp. [...]
Apples annual conference kicked off last week and Blazing Cloud wasn’t about to miss it’s chance to attend. Many exciting things happened like a preview of the 4th generation iPhone, a preview of developer tools and a look into safari improvements. The keynote also offered up some interesting statistics and new device capabilities of iPhone [...]
By Lee
|
Posted in Apple, Mobile, iOS, iPad, iPhone
|
Also tagged iOS, iPad, iPhone, iPhone SDK, iPod, Mobile, WWDC
|