Monday, October 10, 2016

3 Bugs in Ionic to Xcode creation and how to fix them

i encountered 3 bugs in Xcode 8 from Ionic. To fix them, i use the following hints with // comments out lines and the new lines to add in Xcode editor.



  1. //  self.closeButton = [[UIBarButtonItem alloc] initWithTitle:title style:UIBarButtonItemStyleBordered
    • self.closeButton = [[UIBarButtonItem allocinitWithTitle:title style:UIBarButtonItemStylePlain
  2. //   [self.webView loadHTMLString:nil baseURL:nil];


    • [self.webView loadHTMLString:@"" baseURL:nil];
  3. //- (NSUInteger)supportedInterfaceOrientations // may not be necessary to replace, debugging 
    • - (UIInterfaceOrientationMask)supportedInterfaceOrientations