FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ActionBar crashes on iOS when first component uses an ActionItem · Issue #121 · NativeScript/nativescript-angular · GitHub

ActionBar crashes on iOS when first component uses an ActionItem #121

Description

As the title says, if your iOS app’s first component uses an <ActionItem> the app crashes.

Code:

<ActionBar title="Title">
  <ActionItem text="Hi"></ActionItem>
</ActionBar>

Error:

Mar 18 11:05:47 VANTOLLMAC-7 sampleGroceries[8644]: *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'

Mar 18 11:05:47 VANTOLLMAC-7 sampleGroceries[8644]: *** JavaScript call stack:
    (
        0   setLeftBarButtonItemsAnimated@[native code]
        1   populateMenuItems@file:///app/tns_modules/ui/action-bar/action-bar.js:112:53
        2   update@file:///app/tns_modules/ui/action-bar/action-bar.js:90:31
        3   ngOnInit@file:///app/tns_modules/nativescript-angular/directives/action-bar.js:71:35
        4   detectChangesInRecordsInternal@:20:107
        5   detectChangesInRecords@file:///app/tns_modules/angular2/src/core/change_detection/abstract_change_detector.js:104:48
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL