Beispiel #1
0
    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()
Beispiel #2
0
    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()
Beispiel #3
0
    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()