objective c - drawWithRect crashing with an exception breakpoint on iOS 8 (Does not crash without exception breakpoint) -


happy iphone day everyone! hope managed hands on one.

i have strange issue. in code, have uitableview , if user selects email icon in uinavigationbar, 2 things:

1) opens mfmailcomposer

2) creates pdf in background of contents of uitableview , attaches email

this has far been working in ios 7. ios 8, if set exception breakpoint in code , run on ios 8 device, crash when click email icon (iphone 5s), pointing code below:

    [strheader drawwithrect:cgrectmake(65, -670, 1024, 100) options:nsstringdrawinguseslinefragmentorigin attributes:@{nsfontattributename:headerfont} context:nil]; 

it doesn't let me jump in or out of breakpoint or find out what's going on. if remove exception breakpoint, there's no crash. if run app on device , disconnect device xcode, run again, there's no crash.

so ultimately, there's no crash when running app, makes me extremely nervous exception breakpoint, crashes @ code above means isn't right somewhere.

there no warnings in code. method saving of pdf email (which contains code) extremely long; if it's required, i'll paste here don't want make question longer needs be.

if remove exception breakpoint line , set regular breakpoint, expected, stops @ point. run through , there no errors @ all. if run through whole breakpoint, needs , shows mfmailcomposer in app. it's not "crashing", exception breakpoint has problem it.

how can find out why it's crashing? more importantly, how can fix it? (which answerable after first question gets answered).


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -