i have simple custom view have uilabel child:
class uinotificationdetail :uiview { let title = uilabel() let content = uilabel() let date = uilabel() let dismissbutton = uibutton.buttonwithtype(uibuttontype.custom) as! uibutton let kmargin : cgfloat = 10 override init(frame: cgrect) { super.init(frame:frame) } convenience init(notification : uinotification){ self.init(frame: rb.withscreen().make()) self.backgroundcolor = config.graycolor self.dismissbutton.frame.size = cgsizemake(40, 40) self.dismissbutton.backgroundcolor = uicolor.clearcolor() self.dismissbutton.setimage(uiimage(named:"x_orange"), forstate: uicontrolstate.normal) self.dismissbutton.tintcolor = config.orangecolor let fontname = self.title.font.fontname self.title.numberoflines = 0 self.title.textcolor = config.orangecolor self.title.text = notification.title self.content.numberoflines = 0 self.content.font = uifont(name: fontname, size: 12) self.content.text = notification.description self.date.font = uifont(name: fontname, size: 10) self.date.numberoflines = 0 self.date.text = notification.date self.addsubview(self.date) self.addsubview(self.title) self.addsubview(self.content) if config.isiphone{ self.addsubview(self.dismissbutton) } } required init(coder adecoder: nscoder) { fatalerror("init(coder:) has not been implemented") } override func drawrect(rect: cgrect) { super.drawrect(rect) let width = rect.size.width - 2*kmargin self.dismissbutton.frame = rb.withparent(rect).sameas(self.dismissbutton.frame).right(kmargin).top(kmargin / 2).make() self.date.frame = rb.withparent(rect).sameas(self.date.frame).top(3*kmargin).left(kmargin).make() self.date.sizetofit() self.title.frame = rb.withparent(rect).sameas(self.title.frame).bottomof(self.date.frame, offset: kmargin / 2) .left(kmargin).width(width).make() self.title.sizetofit() self.content.frame = rb.withparent(rect).sameas(self.content.frame).bottomof(self.title.frame, offset: kmargin / 2) .left(kmargin).width(width).make() self.content.sizetofit() } } that view popoulaed uinotification got async rest-service. work fine till decide create in administration 1 uinotification had in description string word containing simple : ì
if cell , view detail have uilabel text contains di ì see in cell:

and in details:

if string doesn't contain ì working fine:
cell:

details:

someone got same issues? run: xcode version 6.3.2 (6d2105) swift 1.2 ios sdk 8.3
Comments
Post a Comment