Posts

Post not yet marked as solved
8 Replies
4.0k Views
I have a UITableView inside a UIViewController (not UITableViewController) with a UISearchBar at the top of the table view that's shown and hidden via a search button on the UINavigationBar. When you scroll to the top the table view's background is shown above the search bar. I've been doing a lot of research and can't figure this out. PLEASE HELP!!http://i1152.photobucket.com/albums/p493/-roar/Image-1_zpswgtd0w6d.jpgmake sure your ad blocker is on before clicking the link. lots and lots of ads
Posted Last updated
.
Post marked as solved
2 Replies
556 Views
My app utilizes auto-renew subscriptions. To check the status I refresh the receipt, validate it with the iTunes servers, and check the expiration date of the last object of "latest_receipt_info"if let receiptInfo: NSArray = json["latest_receipt_info"] as? NSArray{ let lastReceipt = receiptInfo.lastObject as! NSDictionary let productid: String = lastReceipt["product_id"] as! String let bundleid: String = Bundle.main.bundleIdentifier! + ".monthly" let expirationDate: Date = (formatter.date(from: lastReceipt["expires_date"] as! String) as Date?)! }The issue I'm having is that the order of receipts in "latest_receipt_info" is completely wrong. The order is constantly changing. I was having no issues with this until today. Could this be a bug, or am I doing something wrong?
Posted Last updated
.