davbryn

United Kingdom

n/a

Age: 32

iPhone developer C++ Programmer

Apr
9
answered iOS:Quartz2d to Draw floor plans
Apr
5
revised Null value causing crash even with if/else statement?
added 21 characters in body
Apr
5
comment Null value causing crash even with if/else statement?
@Brittany That is not the best way to handle this. Your incoming data is not parsing because it is returning something that you are not expecting. By wrapping with try/catch you are not solving the problem; you are ignoring it
Apr
5
revised Null value causing crash even with if/else statement?
added 331 characters in body
Apr
5
comment Null value causing crash even with if/else statement?
I've commented my answer regarding this - it is not enough to check for existence / count. You need to check the type of the object
Apr
5
comment Null value causing crash even with if/else statement?
@TarunSeerayour code is not enough to prevent the crash. If the data in user[@"field_photo_path"][@"und"] is an NSDictionary and not an NSArray you cannot access it with [0] and will get your crash. You access NSArray's with an index (array[0], array[1] etc) and an NSDictionary with a key (dict[@"name"] dict[@"und"] etc)
Apr
5
answered Null value causing crash even with if/else statement?
Apr
5
comment Why does this load improperly the first time but correctly upon refresh?
You could apply the corner radius before the image loads/load a placeholder image before the background etc but unfortunately the cell could be recycled whenever the view is scrolled. You really need to write some caching code (or use someone else's github.com/rs/SDWebImage ;-) )
Apr
5
answered Why does this load improperly the first time but correctly upon refresh?
Apr
3
comment Creating a 360 photo experience on iOS mobile device
There is a viewer in the SDK that does all those things
Apr
3
answered Creating a 360 photo experience on iOS mobile device
Mar
31
answered dismissViewControllerAnimated is not dissmissing ViewController
Mar
5
answered How to change root controller after a server call on App Delegate?
Feb
28
awarded Scholar
Feb
28
awarded Supporter
Feb
28
accepted Find a sine function that intersects at ($y = 0$) for a given $x$
Feb
27
comment Find a sine function that intersects at ($y = 0$) for a given $x$
@sasha I'm interested only in integer n solutions for y = sin(x*PI /n)
Feb
27
awarded Student
Feb
27
awarded Autobiographer
Feb
27
awarded Editor
1 2 3 4 5