Hi,
I'm currently in the middle of developing an iPhone app with a big reference database (using Core Data backed with a pre-populated sqlite database). Once the app is live and deployed to a client's iPhone, I need the facility to update/insert a small amount of data. What are best practices / methods for doing this?
There may be occ...
Hi, the following code (from a database object created for each new view):
-(void)update:(NSString *)queryText{
NSLog(queryText);
char *errorMsg;
if (sqlite3_prepare_v2(database, [queryText UTF8String], -1,
}
if (sqlite3_step(statement) != SQLITE_DONE){
NSAssert1(0, @"Error updating table: %s", errorMsg)...
I have a UITableView which displays about 5 cells at a time, yet in my table there might be cases where there are only 2 cells with content as seen on this picture:
The white cells below do not look nice, how can I change the background color of these cells to black too? UITableView does not have a backgroundColor property.
Thanks!
...
Guys,
I have a ConfiguracaoDaApp class in my project that is a NSManagedObject subclass. I didn't change the default code that XCode generates.
I declare a instance variable of that type in my app delegate and in my appDidFinishLaunching method, I have been try to assign it's value from a object retrieved from the database like this:
...
I want to reload the data within a table view that is contained on the root view of my application.
The root view of my application (called RootViewController) is a UIViewController that has a corresponding NIB file. I added a UITableView component to the RootViewController.xib via IB. In the header file RootViewController.h I ensure Ro...
I'm writing an application based off of the Three20 framework, and I seem to be having some trouble...
I'm using the TTTableViewController to load data from an endpoint and display a list of the titles, which can be clicked to present a new UIViewController which contains a UIWebView that shows the URL (gotten from the JSON data). Howev...
I am trying to save my data from a view that was loaded on applicationWillTerminate but am running into a few problems.
I have four views:
inFinateViewController
FirestViewController
SecondViewController
ThirdViewController
I am loading my views from like this (thanks to Mauricio Giraldo code) via the infinateViewController:
- (void) ...
Hello everyone,
I am trying to create a NSFetchRequest that produces results for a UITableView.
It should find all the distinct occurrences of a NSString property and split them into alphabet sections ('A', 'B', 'C', etc.)
I have set up a method on my NSManagedObject class to return the first letter of the property:
- (NSString *)ent...
What glBlendFunc should I use to ensure that the opacity of my drawing is always the same? When I use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) and multiple images are drawn on top of each other, the result is more and more opaque until it's completely opaque after a certain number of imgaes.
The closest I have come is to use gl...
I have an application designed for iPhone OS 2.0 and I am adding some new 3.x functionality to it. My idea is to maintain compatibility with older versions.
I have managed so far, to test for deprecated functions using "if respondToSelector...". This is just fine for calls inside a method but how to deal with method name changes? For ex...
Hi,
I am using a c++ library using callback to inform about the progress of an operation.
Everything is working fine except this:
I need to have a function in my controller to be use as a c++ callback function.
I've tried a lot of things but none of them are working.
Do you know how we can manage this kind of thing?
Thanks :)
...
How can I calculate the number of differences between two NSStrings.
Example:
NSString 1 = this is a string
NSString 2 = Tihs isa string
should return: 4 (one for the capital "T", one for the "i", the "h" and for the missing space)
...
Hello,
i would like to fetch a part of a string in objective C:
a sampletext:
This is the story of a startnew mountainend. There were many bluestart green houses end.........
the function should return a array of strings which are all in between the "start" and the "end".
How can i write this in objective C?
Andreas
...
I have an abstract entity called Block which contains two attributes: column and order (which are not optional), and one relationship, thing, where it is the detail of a 1->M. I have another entity, Whatever, that has Block as its parent, and adds one attribute, someNumber.
My code looks like this:
Whatever *block = (Whatever *)[NSEnti...
I am writing an iphone app to connect to an SSH server and perform some commands like reboot or check the uptime of the server. Is there a framework which lets me login to some server and invoke some commands on a linux server.
...
For my upcoming iPhone application I'd like to offer In-App purchases of expansion content (things like additional unit types), but I'd like to offer them in a booster-style format, i.e., you buy a booster pack and get X new unit types out of Y total units. Units can stack and are useful in duplicate, so you can get some of the same uni...
I'd like to do OAuth for Twitter from an iPhone app. But doing so implies that I need to have my API secret alongside my API key baked into the application binary. This is obviously undesirable.
Facebook supports the notion of a session proxy to get around the parallel issue with their API.
Can I do something like this for Twitter?
...
Looking to add a toolbar over UIKeyboardTypeNumberPad with a 'Done' Button. Has any one seen a good current tutorial? Is this the correct approach? Thanks.
...
I have a tableView:didSelectRowAtIndexPath: where I create a ViewController-Instance each time an item is selected. Sometimes it works fine for a long time, sometimes it crashes with a EXC_BAD_ACCESS very quickly. The debugger blames the line [super dealloc]; in the QuestionDetailViewController.
Why? I log the QuestionDetailViewControll...
I've tried disabling it by inserting:
<meta name="viewport" content="width=320" />
into my HTML string, and a dozen variations of the above in the vain hope that I just screwed up the tag syntax... but nothing seems to stop UIWebView from scrolling horizontally. And yet there are apps that manage to do this (like MobileRSS), and presu...