It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
My app crashes on the line:
NSString *test=[NSString stringWithXMLTag:#"name" andValue:#"NameTest"];
It's likely that you aren't including the NSString+stringWithXMLTag.h file. Consequently, your app will not recognize the stringWithXMLTag:andValue selector.
Add this to the top of your file that receives the crash:
#import "NSString+stringWithXMLTag.h"
This, of course, assumes you have that file in your project (and any of its dependencies).
This error is saying that the NSString class does not have a selector (method) named stringWithXMLTag:andValue.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm trying to recreate the look here:
(Except normally these buttons would not be disabled). How do I recreate this iOS-style look in an objective-C application?
The Mondo Switch seems like a good place to start
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When I am trying to use round_page() function in my project, it stops compiling and says that there is linker problem. What am i doing wrong?
Sorry, I realized that i just had to include mach/mach-init.h
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Is there a way I could initialize some constant in a method like -(void) viewDidLoad for my screen variables (retina, not retina etc) ?
Thx
In C and Objective-C, constants cannot be assigned at runtime because they are constant. If you are asking how to assign to an instance variable, or make that variable accessible to other classes, please update your question.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Here's more explanation.
- (NSArray *)shipsAtPoint:(CGPoint)bomblocation withDamage:(BOOL)damaged;
How to send that?
You'll want to read The Objective-C Programming Language, which you'll find in the Xcode docs.
[objectIWantToSendTheMessageTo shipsAtPont:somePoint withDamage:YES];
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Trying to debug a UILabel and am trying to follow the instructions on this page:
http://ramin.firoozye.com/2008/12/11/easy-uiview-debugging-on-the-iphone/
which mentions:
Include this file in our iPhone XCode project and build it for
debugging.
Does that mean simply import it into a .m file like this?
#import UIViewExtras
No, you just need to drag the file 'UIViewExtras.m' into your Xcode project, so that it lies alongside the rest of your source code files. Nothing else, no #imports.