55791

How to put one WKInterfaceLabel below WKInterfaceLabel?

Question:

hello all i have new in watchkit development and i have special requirement in which i arrange one WKInterfaceLabel below another WKInterfaceLabel, i try with lots off option like edit postions but WKInterfaceLabel is not set properly can you please help me in this.

1)Position of the first WKInterfaceLabel

<img alt="first WKInterfaceLabel on top left side position" class="b-lazy" data-src="https://i.stack.imgur.com/NAhl4.png" data-original="https://i.stack.imgur.com/NAhl4.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

2) Position of the second WKInterfaceLabel

<img alt="second WKInterfaceLabel below first WKInterfaceLabel" class="b-lazy" data-src="https://i.stack.imgur.com/0VZE7.png" data-original="https://i.stack.imgur.com/0VZE7.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

3) Actual Design

<img alt="Actual Design" class="b-lazy" data-src="https://i.stack.imgur.com/sApQx.png" data-original="https://i.stack.imgur.com/sApQx.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

4)Display in Interface file

<img alt="How WKInterfaceLabels display in storyboard()" class="b-lazy" data-src="https://i.stack.imgur.com/AZlag.png" data-original="https://i.stack.imgur.com/AZlag.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

Answer1:

I don't know clearly about your question, but if you want to arrange the label as you want, you should use the Group and change the position, size of width, and height of label. In your displayInterface File, may be you have one Label out side of your interface. you can change the vertical or horizontal arrange element of group if you want at attribute Window at the right side of Xcode

Answer2:

I hope you are adding both WKInterfaceLabel vertically in WKInterfaceGroup. Set vertical position of both labels as Top.

Recommend

  • Monodevelop - Try to install on linux Precise 64 (Ubuntu 12.04 LTS)
  • JPA CDI Injecting DAO into an Entity
  • Sum data table columns using linq
  • Rails AREL .where statement
  • Disable/remove close icon on Kendo Grid's default group column
  • How to name a 'group' check box in Adobe Reader when wanting to fill form by FDF / XFDF
  • Is there any way to use wpdb prepare statements for array implode(' OR ', $myArray)?
  • SF2 Functional tests : “Resetting the container is not allowed when a scope is active”
  • SQL - Select lowest values with group by and order by?
  • Flex items with same property values are rendering in different sizes
  • How to load more than one div at a time
  • Doctrine2 bulk import try to work with another entity
  • SyntaxError: (irb):26: both block arg and actual block given
  • Salesforce Different WSDL files and when to use
  • Linq Merge lists
  • xcode don't localize specific strings
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Query to find the duplicates between the name and number in table
  • presentShareDialogWithParams posts to FB wall, but callback handler results say error
  • Grails calculated field in SQL
  • Blackberry - Custom EditField Cursor
  • Time complexity of a program which involves multiple variables
  • Swift: Switch statement fallthrough behavior
  • Custom Tabgroup Appcelerator
  • Checking free space on FTP server
  • Django: Count of Group Elements
  • Body moving without any force applied? (Box2d)
  • Linq Objects Group By & Sum
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • Read text file and split every line in MSBuild
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Which linear programming package should I use for high numbers of constraints and “warm starts” [clo
  • ActionScript 2 vs ActionScript 3 performance
  • To display the title for the current loaction in map in iphone
  • Traverse Array and Display in markup
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • How to set the response of a form post action to a iframe source?
  • embed rChart in Markdown
  • Android Google Maps API OnLocationChanged only called once