Well, the title says it all: How can I make Xcode tell the compiler not to link?
I am making a library which may not link to anything. Where can I set in the target's properties that it must not link to the standard library, as I can choose static or dynamic only, there is no not option.
Can you help me, please? Thanks.
...
timeInterval keeps returning random numbers. Some positive. I would think the interval would continue increase with each call, but sometimes I get negative numbers or positive numbers.
NSDate *date = groceryItem.lastPurchased;
double timeInterval = [date timeIntervalSinceNow];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%d"...
Hello,
Currently I am trying to parse an xml string that I already have (no web calls needed). My app is native iPhone in Objective-C. I have set up an NSXMLParser delegate class which uses initWithData:xmlData. For some reason, the first and only callback on my delegate is to parser: parseErrorOccurred with the following text:
"Unab...
I want the functionality similar to the last tabs in a tab bar (those that are shown in a table after pressing the "..." )
Each points to another view.
My table
page a>
page b>
page c>
I guess that the code should be in didSelectRowAtIndexPath
but
I dont know how to call a nib based on the table
I dont know if after navigating ...
I have an UITableView populated by a NSFetchedResultsController. The initial fetch works fine. I can add, remove, modify, etc with zero problems.. But I want to add user-defined sorting to the table. I am doing this by changing the NSFetchedResultsController to use a different sortDescriptor set, and a different sectionNameKeyPath. Here ...
For my new app Im working on I want to be able to send messages on the app to xbox 360 friends . I Know its possible since they have them on the app store but how would I do it?
Thanks for any ideas/code!
...
Hi guys,
I have an app that runs on iPad and iPhone running iOS 3.2, but when I try to install it in the simulator it freezes - unresponsive interface (a UIAlertView at this point), no console messages, no crash logged. When I step through, it gets all the way through applicationDidFinishLaunching and then stops with this list of calls:...
[infoText drawInRect:CGRectMake(10, 10, 310, 40) withFont:infoTextFont lineBreakMode:UILineBreakModeWordWrap];
Any suggestions on how to produce an ellipsis when the text exceeds the size of the rect?
...
I'm trying to add a menu item next to the "copy", "paste" items in a UITextView. I've created a subclass of UITextView and copied the example from apple's docs here:
http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/Text/Text.html#//apple_ref/doc/uid/TP40009370-CH8-SW28
I simply created a ...
I've got a toolbar item that contains a view (an NSButton) and the view's target is set to nil, so it'll look up the responder chain when triggering the action. I'm having trouble trying how to validate against the first responder, though.
I've subclassed NSToolbarItem and implemented -(void)validate. The references that I've found say ...
Hello,
I have a csv file that is comma delimited. I have no problem with the importing aspect of it except for when the import reaches a line like this:
1,2,3, Canada's,5, 6,7
The import crashes when it reaches the single quote. Does anyone know of a program I could use to import my csv file in to sqlite database without having to get...
I need to know how to extract everyname & number from the address book in xcode for the iphone. I need to have the name and number in the following format:
John Doe:000000000000000 Jane Doe:000000000000000
...
Method swizzling works great for instance methods. Now, I need to swizzle a class method. Any idea how to do it?
Tried this but it doesn't work:
void SwizzleClassMethod(Class c, SEL orig, SEL new) {
Method origMethod = class_getClassMethod(c, orig);
Method newMethod = class_getClassMethod(c, new);
if(class_addMethod(c, orig, method_g...
hi guys, I'm new with Objective C.
I would like to know why this code does not work fine. The idea is to make a function that copies the content of a NSString into a Cstring.
I send a message to setAttr, i.e: [ self setAttr:@"something"]
- (BOOL) setAttr:(NSString *) src{
const char *dst;
[ self NSString2CString: src dst: dst ];
...
I'm subclassing UITableViewCell and using Quartz 2D to draw the elements of the cells in the drawContent view method. In my table view delegate's tableView:cellForRowAtIndexPath, I'm also inserting a UIImageView as a subview to the cell, but the image doesn't appear until the cell is selected. I'm suspicious of the backgroundView and s...
Coming from Java and Python, I am not so well versed in memory management, but is there any way to find out what kind of object resides at a particular memory address?
I am asking because my application terminated with a cryptic message that reads:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSD...
Hi,
In my iPad app, I am presenting a modal view controller with the UIModalPresentationPageSheet style. Today, randomly, when I presented the modal view controller, the page sheet was rendered without the white background, leaving just the shadow:
I have not made any changes to the view controller that is being presented, or the vie...
Hi!
Is there way to do the shadow for CCSprite?
Thanks,
Yakov
...
I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash.
Is there some way to simu...
How can I disable specific dates from a UIPickerView that's .datePickerMode has been set to UIDatePickerModeDate? I need to disable holidays and weekends.
...