9

The application was running well before watchOS4 but in watchOS4 there is extra black space is visible on top of WKInterfaceController. This case happens in present WKInterfaceController only but seems working fine if I try to push WKInterfaceController.

Case 1 :

self.presentController(withNames: ["XYZ", "ABC"], contexts: nil)

See below image there is extra bar below the title.

enter image description here

Case 2:

self.pushController(withName: "XYZ", context: nil)

Working fine in push method(no extra space in watchOS4).

enter image description here

PS: I have tried new present method also:

self.presentController(withNamesAndContexts: [(name: "XYZ", context: [:] as AnyObject)])

Also if I am trying to present single interface controller then it works perfect, only cause when in I am trying to present multiple interface controllers(in the page).

Tejas Ardeshna
  • 4,343
  • 2
  • 20
  • 39
  • There wasn't any changes in that specific API according to the documentation, so this seems like a bug. Most probably this isn't the cause of the issue, but if you are presenting a single controller, why not use `presentController(withName:context:)`? – Dávid Pásztor Sep 19 '17 at 13:10
  • @DávidPásztor i am presenting 2 controllers, but just for here i have removed one. i am using like self.presentController(withNames: ["SleepDetail", "SleepSelectionIC"], contexts: nil) – Tejas Ardeshna Sep 19 '17 at 13:18
  • @DávidPásztor also my all presented interface controllers have the same issue. push interface controller working fine. – Tejas Ardeshna Sep 19 '17 at 13:19
  • I am also facing same issue, can someone help me? – Madan gupta Nov 03 '17 at 08:29

1 Answers1

1

We have contacted Apple regarding that issue. Thay told us that it's a bug in watchOS and will be resolved soon.

PS: Don't waste your code level support for this issue.

Tejas Ardeshna
  • 4,343
  • 2
  • 20
  • 39