[Solved] How can i convert string to date with some strange format

You can use this function to get date from your string. – (NSDate *) dateFromServerAttributeDateFormat:(NSString *)dateString { NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@”yyyy-MM-dd’T’HH:mm:ss.SSS”]; [dateFormatter setLocale:[NSLocale currentLocale]]; if (!dateString.length){ return nil; } else return [dateFormatter dateFromString:dateString]; } in swift func dateFromServerString(dateString:String) -> NSDate { let dateFormater = NSDateFormatter() dateFormater.dateFormat = “yyyy-MM-dd’T’HH:mm:ss.SSS” dateFormater.locale = NSLocale.currentLocale() … Read more

[Solved] numberOfRowsInSection repeats counting the last section

Surely you just want to look at the relevant section rather than looping through all the sections. Something like: – (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if([buttonTags containsObject:@(section)]) { return 0; } else { return [arrayOfArrays[section] count]; } } 0 solved numberOfRowsInSection repeats counting the last section

[Solved] NSURL convert mistake in Swift

If you want to display the content present in your URL after we hit your URL in browser, we can do the following let url = NSURL(string: “http://atakaractakip.co.nf/atakdeneme.txt”)! let data = NSData(contentsOfURL: url) if data != nil { if let content = String(data: data!, encoding: NSUTF8StringEncoding) { //It will display Onay AKPINAR as this is … Read more

[Solved] Should I use a native or a hybrid app for an an app based Online-Shop [closed]

Native vs Hybrid App debate is a one which varies its outcome based on your priorities. You should always go for whatever best suits your needs. Some points to consider while choosing to go with Native or Hybrid are, Development Time – The foremost pointer to consider while Native vs Hybrid comparison is that the … Read more

[Solved] How to update a UITableView that after NSUserdefaults settings have been changed? [closed]

It is kind a best way to reload your table. if you want to reload one row(or more), you can use [self.tableView reloadRowsAtIndexPaths: withRowAnimation:]; if you want to do multiple inserts or delete you can use [self.tableView beginUpdates]; [self.tableView endUpdates]; [self.tableView reloadData]; reload everything…redisplays visible rows, reloads data. solved How to update a UITableView that … Read more

[Solved] How I could access to the Url of photo saved in the camera roll

Your question is extremely vague with nothing for us to work with. But in any case, I just created an app requiring that logic so I would just share with you func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) { // Clear data if picture is repicked imageLocalURL = nil imageData = nil imageSelected = … Read more

[Solved] Login form in swift

If you have setup your segue in Storyboard, give the segue an identifier. (say , yourID) Then invoke the following method. self.performSegueWithIdentifier(“yourId”, sender: self) when you want to go to the next ViewController. EDIT call the method in last else. }else { self.actInd.startAnimating() var newUser = PFUser() newUser.username = username newUser.password = password newUser.email = … Read more