Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24071

iOS: Expose Ti.UI.Label maxLines (Parity)

    Details

    • Story Points:
      1
    • Sprint:
      2016 Sprint 22 SDK

      Description

      Add support for numberOfLines property on UILabel component:
      https://developer.apple.com/reference/uikit/uilabel/1620539-numberoflines?language=objc

      It should be called maxLines to allow a better cross-platform implementation

      PR: https://github.com/appcelerator/titanium_mobile/pull/8543

      Example:

      var win = Ti.UI.createWindow({
         backgroundColor: '#ffffff'
      });
       
      var testLabel = Ti.UI.createLabel({
         text:"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog",
         color:'black',
         width:'50%',
         maxLines:1
      });
       
      win.add(testLabel)
      win.open();
      

      Expected: Changing the property maxLines, the label should expand accordingly the value

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                chmiiller Carlos Henrique Zinato
                Tester:
                Eric Wieber (Inactive)
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration