last day (15 days later) » 

4:44 PM
0
A: not able to get data.or getting two time same data in table view

Arun GuptaYour code should be something like this. You should reload your tableView after you have parsed the data. if let reposArray = json["data"] as? [NSDictionary] { self.arrDict.removeAll() for item in reposArray { let itemObj = item as? Dictionary<String,AnyObject> let b_type...

 
no, now same problem.Printing 3 times.one by one same data
 
How are you calling the WebService? Can webservice be called again after data has loaded in tableView. Just updated my answer. Try that.
 
some times, showing correct data.But some time showing 3 times.Does my web service code is in problem??
based on user location , i have to display data.So only i called my web service function in my location fetching method
shall i post my web service code and user location code also.Please help me out.I am struck more here
i need to send the lat , long of user location with my api.Then only i can see my data in table view. If i omit my user location lat , long then the api will respond to nill.
 
Check how many times your LoadBusinesses() func is getting called and value of self.arrDict in numberOfRows. Also are your updated your array self.arrDict any where else. Also show us your tableView delegates.
 
please see my update post of full code
I also updated my console print function .That each statement function executing two times
 
4:44 PM
Console Print seems to be OK. Please check your webservice response and objects in arrDict. This will give more insight
 
i checked that too at starting ,but not able to figure it out
I just add your line self.arrDict.removeAll()First time its ok.But when i see my code again .Its automatically removing why?.If that is fixed then i can solve my problem.Please help me out.How to keep this line as constant.I measn i need to add this line every time or always this line should be in my code.What to do for that??
 
What do you mean by when you see your code again?
Does your location updation runs again after sometime
 

  last day (15 days later) »