def create(self): self.native = UILabel.new() self.native.impl = self self.native.interface = self self.native.lineBreakMode = NSLineBreakByWordWrapping # Add the layout constraints self.add_constraints()
def create(self): self.native = UILabel.new() self.native.interface = self self.native.setTranslatesAutoresizingMaskIntoConstraints_(False) self.native.setLineBreakMode_(NSLineBreakByWordWrapping) # Add the layout constraints self.add_constraints()