ios - Setting UIImageView.frame causes EXC_BAD_ACCESS occasionally -


i'm getting exc_bad_access. i've tried suggestions regarding bad access without luck. know caused when set uiimageview frame.

this code...

_backimageview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"cardback_brothers_royal"]]; cgrect imageframe = _backimageview.frame; imageframe.origin.x = -9; imageframe.origin.y = -9; imageframe.size.width = 151; imageframe.size.height = 225; _backimageview.frame = imageframe; 

backtrace:

0   0x33cf3a22 in -[uiview(calayerdelegate) actionforlayer:forkey:] () 1   0x33aa201e in -[calayer actionforkey:] () 2   0x33aa1fce in actionforkey(calayer*, ca::transaction*, nsstring*) () 3   0x33aa1eba in ca::layer::begin_change(ca::transaction*, unsigned int, objc_object*&) () 4   0x33a9d9e6 in ca::layer::set_position(ca::vec2<double> const&, bool) () 5   0x33a9d8a2 in -[calayer setposition:] () 6   0x33a9d832 in -[calayer setframe:] () 7   0x33cf2aec in -[uiview(geometry) setframe:] () 8   0x33cf2814 in -[uiimageview _setviewgeometry:formetric:] () 9   0x33cf2752 in -[uiimageview setframe:] () 10  0x0006cd88 in -[cardview loadback]  

alway's try set imageview frame this: yourimageview.frame = cgrectmake(x_position,y_position,width,height);


Comments

  1. Ios - Setting Uiimageview.Frame Causes Exc_Bad_Access Occasionally - >>>>> Download Now

    >>>>> Download Full

    Ios - Setting Uiimageview.Frame Causes Exc_Bad_Access Occasionally - >>>>> Download LINK

    >>>>> Download Now

    Ios - Setting Uiimageview.Frame Causes Exc_Bad_Access Occasionally - >>>>> Download Full

    >>>>> Download LINK OX

    ReplyDelete

Post a Comment

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -