Expert
What is the result of this code: [@ "new string" release] ?
Author: Smart&SoftStatus: PublishedQuestion passed 18 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
0
What is the output of the following Objective-C code?
@interface MyClass : NSObject
- (void)doSomething;
@end
@implementation MyClass
- (void)doSomething {
NSLog(@"%@", self);
}
@end
int main(int argc, const char * argv[]) {
MyClass *myClass = [[MyClass alloc] init];
[myClass doSomething];
return 0;
}1
What is the keyword to use to avoid retain cycles in Objective-C?0
What is the superclass of UIViewController?0
What is the default value of an uninitialized Objective-C variable?0
What is the type of the result of the following expression? '2023-03-08 12:00:00 +0000'.dateWithFormat('yyyy-MM-dd HH:mm:ss Z')0
What is the Objective-C keyword to make a property private?0
How to throw an exception in Objective-C