Skip to content

iOS - Using with TNS 2.3.0 and Xcode 8 #34

@DomGaud

Description

@DomGaud

After updating to Nativescript 2.3.0 and Xcode 8, I get the following error:

TypeError: UIScreen.mainScreen is not a function. (In 'UIScreen.mainScreen()', 'UIScreen.mainScreen' is an instance of UIScreen)

Solution - change from using a method:

var applicationFrame = UIScreen.mainScreen().applicationFrame;

to a property

var applicationFrame = UIScreen.mainScreen.applicationFrame;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions