objective-c-runtime
Any way to check if an instance is still in memory?
Example: I have a view controller and get rid of it. But there\'s still an variable holding it\'s memory address. Accessing that results in EXEC_BAD_ACCESS. Of course. But: Is there any way to check i[详细]
2022-12-21 02:08 分类:问答Objective-C class -> string like: [NSArray className] -> @"NSArray"
I am trying to get a string name of a class from the class object itself. // For instance [NSArray className]; // @\"NSArray\"[详细]
2022-12-21 00:45 分类:问答Get all methods of an Objective-C class or instance
In Objective-C I开发者_StackOverflow中文版 can test whether a given class or instance responds to certain selectors. But how can query a class or instance for all its methods or properties of a class[详细]
2022-12-17 23:17 分类:问答Objective-C property assignment returns the assigned value?
Say I have the following: @interface MyClass : NSObject { NSString* _foobar; } @property (nonatomic, retain) NSString* foobar;[详细]
2022-12-16 02:50 分类:问答Asterisk usage in Objective-C
I had a question regarding the use of asterisks in Objective-C. Just to be clear: I understand what pointers are and everything in procedural C. I was wondering two things though:[详细]
2022-12-15 19:23 分类:问答Creating an IMP from an Objective-C block
The IMP type in Objective-C represents a function pointer, as far I as understand. Is there any way to make an IMP 开发者_Python百科from a block pointer? Thanks for your ideas.Since this was written t[详细]
2022-12-12 11:18 分类:问答Discovering the user's first and last names?
I am trying to programmatically discover the first and last names of the iPhone user. Is this possible at all? Calling this ...[详细]
2022-12-11 08:16 分类:问答