I'm trying the following
(lldb) expr [_tvFeed setFrame:(CGRect)CGRectMake(0, 0, 320, 300)];
I'm getting
error: call to 'CGRectMake' is ambiguous
note: candidate function
note: candidate function
error: 1 errors parsing expression
I'm using XCode 6.1 , LLDB version lldb-320.4.152
OK so here's a way that worked
expr CGRect rect; rect.origin.x=0; rect.origin.y=0; rect.size.width=320; rect.size.height=300; (void)[_tvFeed setFrame:rect];
You can use C compound literals to create CGRect, cause it is just a C struct
It will look like this
(lldb) expr [_tvFeed setFrame:(CGRect){0, 0, 320, 300}];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With