Thursday, 15 March 2012

NSValue

Top Tip

Using NSValue to wrap c types saves time and energy when it comes to debugging.

CGPoint point;

NSValue *val = [NSValue valueWithCGPoint:point];

CGPoint returnPoint

[val GetValue:&returnPoint];

Thursday, 8 March 2012

Condition Operator

I love this neat c trick: The condition operator. It makes my code so much tidier

e.g

return(x < 3)? YES : NO;

as opposed to:

if(x < 3){
         return YES;
}else{
         return NO;
}

Wednesday, 7 March 2012

iOS app testing

It is that time again where software testing ( BETA) is going to start happening. I  have often wondered about people different testing techniques. If anyone has a protocol or process for writing testing I would be interested to hear them.