Post

Replies

Boosts

Views

Activity

Reply to Can not get table to display using UITableView
Set breakpoints in your numberOfSections, numberOfRowsInSection and cellForRowAtIndexPath. Make sure those data source methods are all being called and that you’re returning the right values. For the code you’ve shown, step through it and make sure you’re finding the labels you expect using viewWithTag. Incidentally digging into the view hierarchy like that is not a very safe way to do it. In my opinion it’s better to use a proper UITableViewCell subclass with public properties you can set. Then the view controller doesn’t have to know the implementation details of how the cell is showing the data. It just says “Here’s the data. Go do your thing.” And the cell is free to use a UILabel, text field, SwiftUI Text, custom image or whatever.
Jul ’20
Reply to (Objective-C) Adding to NSMutableArray overwrites existing value.
Can’t say without seeing the relevant code. It’s possible there are issues with doesArrayContainPost or storePostInArray which are not shown. Or maybe it’s being stored just fine in your array and not being correctly supplied to the table view. In any case. Set breakpoints. Step through the code line by line in the debugger. Look at the data coming in vs. what’s existing and see if it’s making the decisions you would expect at the times you expect.
Jul ’20
Reply to Context Menus In iOS 13.5 UIKit Auto Layout warnings
Unfortunately the title is not self explanatory. What warnings are you talking about? What do “context menus” have to do with it? Can you post the actual error messages (copied and pasted, not just your interpretation) and some simple code that demonstrates the problem? Without any details of the specific layout and the specific error messages you’re getting, all anyone can do is point you towards the Auto Layout Programming Guide - https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/index.html.
Jun ’20
Reply to Finding the lowest iOS version to develop an app for
Apple provides a little bit of data on the App Store developer page: https://developer.apple.com/support/app-store/ Personally for a new app releasing in 6+ months I’d probably go iOS 14. You could say iOS 13 but all those devices can upgrade to 14, so adoption will probably be very high. You could argue that people who aren’t willing to update their devices after all those years aren’t as likely to spend money on new apps anyway.
Jun ’20
Reply to Backward compatibilty of xcode 12
Your app will run, if it’s distributed ad hoc, via TestFlight or the App Store. But the old Xcode version will not be able to run development builds directly on the new OS. You’ll need Xcode 12 for that. Whether it will run without crashing is anybody’s guess 🙂 That’s why they give us early beta access, to fix any unexpected issues. Also keep in mind that there’s a requirement coming Real Soon Now (can’t remember the exact date, but it’s soon) that all updates must be built using the iOS 13 SDK, i.e. Xcode 11. So you’ll need to update to that version at least.
Jun ’20
Reply to iOS app Mapkit -> Postqres polygon query and response
That question is a bit too broad to give any answer. You will have to break it up into manageable pieces. For example how to build your overlays/annotations to look the way you want how to perform your database query when to perform the DB query - e.g. in response to the map view regionDidChangeAnimated If you’re making a network request to the DB, i.e. it’s not embedded in your app bundle, then you’ll have to debounce / rate limit your queries and deal with error conditions and query results coming in asynchronously. If you have specific questions that come up it would be better to post those individually rather than a general “how do I write an app to do this” question.
Jun ’20
Reply to Anyone having trouble with In-App purchase not activating in app?
Is it possible this is the so-called “StoreKit flow” where the user is directed to the App Store app to update an expired credit card for example? In that situation, your transaction observer will receive two callbacks - the first failed, and the second success. Your code needs to be able to handle that case. Unfortunately I’m not aware of any way to simulate it to test said code. 😕
Jun ’20