What lines of code are necessary to reload the PFQueryTableViewController? - ios

I'm using Xcode with Parse.com database for storing data! My question is which lines of code will allow a PFQueryTableViewController to reload?

Parses tables are no different than any other table. You reload it like a normal UITableView.
I would highly recommend reviewing their documentation. They are fantastic at providing you well documented resources even dumbing it down to 1st grade level when it comes to implementing push notifications etc and have even helped translate to swift. Don't take them for granted. Their docs are listed here:
https://parse.com/docs/ios_guide
Additionally, there are numerous tutorials out there that will set you up for success you just have to go do the research. This question has been duplicated numerous times but my response is too big for a comment. No credit is necessary. Essentially, just do some research.
Here is a link to appcoda. Based on your question I feel you might have some more questions in the future pertaining to parse, no disrespect. Just here to help. I encourage you to review them and hopefully learn from it.
http://www.appcoda.com/tag/pfquerytableviewcontroller/
Happy coding-

Related

How to initialize a CKSubscription in iOS 10.3

I am building an app that needs to subscribe to record changes in the public database of iCloud. Now, after watching the apple video's and reading their documentation, I decided to get to work. However, I immediately got stuck here:
All initialization methods on a CKSubScription are deprecated. This can be seen here, but meanwhile apple still seems to use the very same methods in their documentation here.
This left me surprised. Looking around on the web and SO, there doesn't seem too be much information or any tutorials available (at least, none with up to date info on initializing subscriptions), probably because this technology is relatively new and these changes are recent. I have very superficial experience with CloudKit, so I'd rather ask for a decent way to do this than to improvise something myself. My question is:
How to initialize a CKSubscription?
Obviously, if the entire idea of subscriptions is outdated I am open to any answer that will result in my app receiving pushes when records of specific types appear in my public database.
Seems like CKSubscription is really more or less deprecated.
According to http://iosdevetips.blogspot.de/2016/06/deprecated-apis-in-ios-10.html you should use CKRecordZoneSubscription and CKQuerySubscription now.
Update:
Like Trevis pointed out, the docs are not really helpful here, but at least Xcode shows a somewhat helpful Warning:
If you are looking for a new class to substitute Apple's own documentation, use CKQuerySubscription in place of CKSubscription. They have almost identical initializers.

Implementing Google Play Games Services in Swift

Hello fellow developers :)
I have been trying to implement Google Play Games Services in my newest app project, but find myself being completely lost. I find GMS to be quite complicated and therefore need some sort of tutorial to stand a chance.
Unfortunately the official guide on Googles websites (https://developers.google.com/games/services/ios/quickstart) only describes the setup process for Objective-C.
My question is therefore, as ambiguous as is, if anyone knows anything that could help me implement GMS. This includes links to tutorials, code-snippets, personal tips, or anything else that could come in handy.
And yes, I am aware that questions like these are often frowned upon due to their ambiguous nature. What must be understood is that this question is a desperate last attempt before giving up and going with GameCenter instead. I simply have not found the information needed anywhere else.
Thank you! :)
You may need to use a bridging header for this. Check out the following link by gguuss in GitHub: http://github.com/gguuss/gplus-ios-swift.

Best way for storing 100+ questions and answers

I am designing an exam practice app that will have the following format, requiring the user to rank the answer 1-5 to sections A-E (using a scroll view) for the same question that will be displayed at the top.
Here is an image:
Each question therefore has 5 parts. I am unsure of what is the best way to store the questions and answers. I read something about plists. Would that be the way to do it? If so, could you recommend any tutorials with images?
Just to clarify, the labels A-E are where the text for the subsections will go and the user will have to rank the appropriateness for each of these.
Thank you!
Few options here:
1. Core Data
Prepopulate .sqlite file with questions and include with app. Keep track of user's progress and attempts and whatever other stats.
This approach also give your ability to label questions by a topic (or any other criteria) and present questions to user that they need or that they failed most.
2 Get data from server
A bit more complicated but offers more benefits. With this approach you would be getting questions in json format.
Benefit of this approach is that you can add any number number of questions and tests without resubmitting your app.
3. Store as text/plist with app
Yes, you can also store your questions as text in plist or json format and as app loads populate core data or keep it in memory to display. The latter approach, however, would offer the least amount of benefit and flexibility to the user.
I suggest using SQLite. See Ray Wenderlich's Tutorial on SQLite for iOS
And there is obviously a not so suitable but easy way and that is using property lists as key and value pairs which i do not recommend.

Getting applications information installed on the device

I want to get the information of the installed applications on the device by code. Like for example when entering the settings in the device then applications you can see all the applications installed ... well I want to get that by code... how to do that?
Any idea about that topic?
Check out the API documentation on CodeModuleManager.
And, part of the way StackOverflow works is that when you get an answer that solves your problem you should accept that answer. This is how you repay people for taking the time to help you out. You are a new user, and not too many questions yet, but if you get to far ahead of yourself without accepting answers people may stop answering them.

Ambitious Networking Project for iOS, need direction

I'm challenging myself to write an app I know nothing about in 2 months time and I need some direction. Suppose you wanted to create an awesome iPad app that takes craigslist posts and displays them in a neat fashion. How would I gather the information from craigslist.org using Objective-C/C in xCode? What objects would I be interacting with to create network connections and how would that information be read in? Would I be reading the source code?
Thank you!
Craigslist has RSS feeds, so I suppose you could just get the link, parse the feed, and display it on a table. There are too many examples to count out there on how to do that.

Resources