ios - EXC_BREAKPOINT in Swift -


i set var tagtextfield: uitextfield in set method. later when call method want var tagtextfield: uitextfield, namely:

var pos1 = tagtextfield.positionfromposition(tagtextfield.beginningofdocument, indirection: uitextlayoutdirection.right, offset: 0) 

i following error:

thread 1: exc_breakpoint (code=1, subcode=0x1000e4280) 

i tried see if var tagtextfield: uitextfield == nil, same error. suggestions why is? if need more code, let me know.

thanks in advance

edit:

here error. no breakpoint enter image description here

you set breakpoint on xcode (probably mistake when trying access specific line). breakpoints represented blue tabs , allow stop execution of code check variable states instance. click on again deactivate (it turn light blue).

enter image description here enter image description here


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -