Hi All,
I have an issue regarding freeing memory as under:
string points; // some points sequences
char* charPoints = (char*)malloc((points.length() +1) * sizeof(char));
//do something
free(charPoints);
Even then after freeing memory is leaked when checked with instruments
...
Hi there.
i have been working on plist these days and got stuck in adding a key to plist which has a boolean value. Here is my plist structure.
Root (Dictionary)
+- Parent1 (Dictionary)
- Key1 (Boolean)
- Key2 (Boolean)
- Key3 (Boolean)
+- Parent2 (Dictionary)
- Key1 (Boolean)
- Key2 (Boolean)
Suppose now i want to ad...
I'm new to iPhone development and Objective-C. Using the ZBar SDK I've developed a basic app which scans a QR image from the photo album and outputs what it translates to.
I want to know if there is a way to take this output, determine whether it is a URL and if so open it in a web browser.
Thanks
Zac
...
Hi all,
I got a little problem. I use some images in my app. Today I wanted to replace them with new ones. But when I build and run the project I still get the old ones. I tried to touch the project and the new images but nothing seems to work. I deleted all references and files and imported the new images, but I still see just the old ...
I've been having some trouble with X-Code. Every time I launch my application, it opens in the simulator and then immediately closes. X-Code says it build successfully and there are no errors.
This happened when I added a timer to my application, however I have now reverted to the previous save where there is no mention of this timer an...
Hello guys,
in my Mac software I need decrypt a file and, after I do my operations on it, I will remove it. My problem is: Where can I put this file? I don't want show it to the user.
...
Hello guys,
is possible replace a plist file when my iPhone app is running? I'd like to implement backup into my app (into the backup zip I have also the plist file) and I don't understand how can I replace the plist file with its backup.
...
I would like to create some environment viables in Xcode for heavy debugging such as:
NSDebugEnabled
NSZombieEnabled
MallocStackLogging
MallocStackLoggingNoCompact
Is it possible to create a new build configuration that is a duplicate of "Debug" where those environmental variables are set to YES, but i can just switch to regul...
Hi Everyone!
Brand new to Iphone development,
My app loads but then it crashes right away, in the console I get this reason:
reason: '[<MyViewController 0x6939d60> setValue:forUndefinedKey:]:this class is not key value coding-compliant for the key delegate.'
Stack:
*** Call stack at first throw:
(
0 CoreFoundation ...
Hello stack overflow,
So I have a table view that contains a bunch of data. The user can navigate down, browse edit, etc. However when they edit and delete a row, and then navigate back via the nav controller, sometimes (not all the time) the app crashes throwing this error:
-[CALayer resourceType]: unrecognized selector sent to inst...
I have this while loop in xcode. The loop seems to work fine since I printed my i++ in console. But for some reason it only checks my IF statement the first time around. I can only add one title into the MutableArray called sectionZeroTitleArray. I have many arrays in this loop so it might get confusing. I will try my best to explain.
...
Has anyone successfully been able to compile libcaldav for the iPhone along with all its dependencies? Is anyone willing to share their experiences?
...
This is my code
NSString *enddate = [[NSString alloc] initWithUTF8String:(char *)sqlite3_column_text(statement, 3)];
I need to have null dates, but when a null is passed to this line, I get an error
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSPlaceholderString initWithUTF8S...
How can I determine in a table already exists before I start adding data to it again, in as few lines of code as possible?
...
i have a local notification that I would like to fire every 5 minutes. I use: localNotif.repeatInterval=NSMinuteCalendarUnit that will have the notification happen once every minute. I can't figure out how to get this to happen every 5 minutes or whatever other >1 minutes interval. I've tried localNotif.repeatInterval=5*NSMinuteCalendarU...
Hey Guys,
I've XCode 3.2.3 with iOS SDK 4 installed in my iMac. I bought an iPhone 4 with OS version 4.0.2 and I would like to use that device for development. However the Organizer shows the message below when the device is connected.
The version of iPhone OS on “iPhone 4G” does not match any of the versions of iPhone OS supported for...
From what I can tell, this has not been asked before. I am building a cocoa touch static library and I have been going along fine until yesterday, right after I checked the project into SVN, it no longer builds and I have 36 errors in my PCH. This is all my PCH is, and I have found no problems with it in the past:
//
// Prefix header fo...
Heres my array
NSMutableArray *arrayTmp= [[NSMutableArray alloc] init];
I populate it like this
double price = sqlite3_column_double(stm, 3);
double accumPrice = sqlite3_column_double(stm, 4);
[arrayTmp addObject:[NSDictionary dictionaryWithObjectsAndKeys:desc,@"desc",
due,@"due", price,@"price", accumPrice,@"accum",nil]];
...
I have the following define'd constant set up.
#define EndDateNotSpecified "None"
But I can't seem to evaluate it, I've tried
if (btnEndDate.titleLabel.text != EndDateNotSpecified) {
and
if (btnEndDate.titleLabel.text isEqualToString:EndDateNotSpecified) {
I get compiler problems with each.
...
I am unable to open projects or files with XCode unless I explicitly do so by going to "File->Open...". If I double click a file or project from the Finder, XCode is launched (or given focus if already open) but it does not load my file or project. Same thing goes for the /usr/bin/open command. This only happens on one of my two developm...