I saw that FMDatabaseQueue is a new addition to fmdb to help handle background thread db calls. It seems like it's just what I need, but I can't find any documentation explaining how to make and handle query/update requests.
Does anybody have any experience with it? Can you post some sample code or an explanation?
Thanks
Branch: github.com/ccgus/fmdb/tree/threadtests
The classes are there, I just don't see how to use the queue.
I was looking around for the same thing and up until today I wasn't able to find much. Gus updated the github repo today with fmdb 2.0, and it has in depth documentation on how to use the FMDatabaseQueue.
Here is the Link
Related
Soo, I am working on my little game and I have been using LeanTween Engine for some UI elements. But there is a problem, I don't know all operations that I can use with LeanTween. So I am asking if there is any working article that could help me? I know that there was one article with information that I need but it is taken down from internet... Help pls. Much love.
As of writing, the official LeanTween API website appears to be down. Nevertheless, the web archive has a snapshot of the index page, which captures all of the available methods:
I'm a starter in Objective-C and IOS programming, and I'd like to have some recent guidance on how to use SOAP with IOS 5. I saw some tutorials online, but they are quite old (over a year old), and I don't really know if there are some more recent ways to deal with the SOAP webservices.
If anyone could give me some guidance / links about that, I'd be very pleased :)
Thanks !
If you really need to use SOAP I suggest you to try SudzC, you've to pass the wsdl to the service and this returns you a folder that contains the sample demo project with all the methods to call the webservice. In the folder you'll find also the documentation of your poject in html. You can also see the implementation file, so you could adapt some functionality based on your requirements. For me this service was very helpful.
There are also other projects similar to SudzC, like wdsl2objc, but i didn't use this yet.
I would like to download information from wikipedia to my iOS app. Firstly, I created simple RSS reader, but I can't download date from wiki. Now, I think that I should create parser for wiki.
What do you think about this? Any ideas?
Thanks,
Tomek
In my opinion, parsing a website is never a good idea. Only the smallest change in the design of the website can break your application and make it unusable. I'd try to get to your data in an alternative way. ;-)
Sandro Meier
Scrapping a web site directly from your app is never a good idea. If you are ever going to do that it is suggested that you do it on a server and provide the data to your app in a well known format, so that site changes can be quickly managed by your server, and as a result, never breaking your app.
Although wikipedia does not have a formal API, it provides some other ways of extracting data from its servers. You should check this link:
http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot#APIs%5Ffor%5Fbots
I know this question is quite old. But I've dealt with the same problem and wrote this very small library. I am using the mediawiki api (Mentioned in the post from Felipe) to get the needed information.
https://github.com/prine/WikiApiObjectiveC
I'm trying to use urbanairship push notification. But while creating instance of UAirship, it is showing error that UAirship is undeclared.i have implemented urbanairship upto http://urbanairship.com/docs/apns_test_client.html#prerequisite and after then i do not know what should i do ? Waiting for response. Thanks.
Have you included UAirship.h and UAPush.h ?
I got something similar just now. Might not be the same problem, but there seems to be a massive bug in the UA library - a combination of careless code design, and badly written code.
Apparently ... you MUST NOT make calls to "UAPush" until AFTER you have invoked
[UAirship takeOff:...]
This shouldn't be a problem. Firstly, UA shouldn't crash! Secondly, there's plenty of calls to UAPush that make sense before calling takeOff. So far as I can tell, this is undocumented (like most of UA, sadly :( ). i.e. I'd read through the official website and the scant docs multiple times, and never saw mention of this requirement.
See https://docs.urbanairship.com/display/DOCS/Getting+Started%3A+iOS%3A+Push, the mostly simplest guide with pictures... Watch for the possible cases you have missed which you shouldn't have.
I know that there are many API's like json,Facebook,twitter etc for developing related applications on iphone....but how to understand an API?This might be scilly question but I want to know how? what would you suggest for for a beginner?
You should find relevant documentation and read through some code examples utilizing the API.
If you are looking for information about the iphone, as the tag suggests, then read through the information here. There is an entire section dedicated to sample code. If you really can't understand how to make something work after some effort and some googling, then you can always ask on StackOverflow.
When ever I came through adding new API in my project I usually scan though documentation to find relevant topic to my project then after looking at the some sample code I usually start experimenting with the code to get the desired results and thats it because API is for short term use, you should not waste your precious time on just one API. So steps are, 1) find the relevant topic then 2) read sample code and 3) write your own code to get the desired results. 4) through away that API.
Cheers
Ayaz Alavi
If it's open source, read the code from beginning to end. Or to see why things were designed in a certain way, maybe try reimplementing parts of the API.