devinross/tapkulibrary — Issue #126: TKCoverFlowView iOS 4.3 crash on initWithFrame:
Author: zfrankz
Created: 2011-11-24 13:15:05+00:00
State: open

There is no problem on iOS 5, but on iOS 4.3 (simulator and device), it crashes during the allocation and init with the sentence:

coverflow = [[TKCoverflowView alloc] initWithFrame:self.view.bounds];

The app crashes on the implementation of TKCoverFlowView:

- (id) initWithFrame:(CGRect)frame
{
if(!(self=[super initWithFrame:frame])) return nil; <- EXC_BAD_ACCESS
.....

In the debug console i can see
warning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame.

My frame CGRect is: origin=(x=0, y=0) size (width=480, height=320)