ios - EXC_BAD_ACCESS Cmd+Left/Right in UItextView -
steps crash:
- сreate "simple view application".
- add textview , set properties(you can see in code bellow).
- cursor should between points in center of field.(you should add long string see points in center)
- connect bluetooth keyboard device.
- move cursor center of field
- press cmd+left/right
- always crash
it code rote:
#import "viewcontroller.h" @interface viewcontroller () @property (weak, nonatomic) iboutlet uitextview *textview; @end @implementation viewcontroller - (void)viewdidload { [super viewdidload]; self.textview.textcontainer.maximumnumberoflines = 1; self.textview.textcontainer.linebreakmode = nslinebreakbytruncatingmiddle; } @end
crash info: nothing in logs, just: in uitextview error: memory read failed 0x0
i can't find problem on stackoverflow or in internet. has ideas it? or report apple?
tested on:
- ipad 4 ios 8.3(12f69)
- ipad mini 9 betta 3(13a4293g)
Comments
Post a Comment