Wednesday, 15 July 2015

swift - NSArray is not convertible to Array<Row> -


On reviewing some code that seemed to work with Xcode6, I noticed that I had " NSArray is not convertible crying Array & lt; & gt; to type 'NSArray' "error for this line:

  var array = (data as NSArray ). The filter is using (as SearchPradex!) As? [AnyObject]  

Here is the code

  func updateSearchResultsForSearchController (searchController: UISearchController) {data1.removeAll (keepCapacity: false) var searchpredicte = NSPredicate (format: "including myself [C]% @", serchcontroller.searchBar.text) as var = array (data as NSArray) are Kfiltrarereupyog (Khojaspradiks!)? [AnyObject] Error above / 1 line // 1 array as array & lt; Line & gt; Self.table.reloadData ()}  


No comments:

Post a Comment