objective-c-runtime
Objective-C: Calling and copying the same block from multiple threads
I\'m dealing with neural networks here, but it\'s safe to ignore that, as the real question has to deal with blocks in objective-c. Here is my issue. I found a way to convert a neural network into a b[详细]
2023-02-20 20:00 分类:问答retainCount in blocks show extrange behavior
I got the this code in a class: - (void)cancel { if (_cancelBlock) _cancelBlock(); } - (void)overrideCancelWithBlock:(void(^)(void))cancelBlock {[详细]
2023-02-15 07:36 分类:问答What does the “unrecognized selector sent to instance” error mean?
I am getting a crash in my app due to the following error: -[NSCFString count]: unrecognized selector sent to instance 0x612b060[详细]
2023-02-14 14:41 分类:问答Declaration of properties at runtime?
Is there a way to declare properties at runtime in Obj-C? I was looking for something like class_addMethod but开发者_如何学Python for properties.A common misconception is that @property implies code g[详细]
2023-02-10 18:20 分类:问答Possible to tell if a subclass overrode a method?
While working on a small project I found myself needing to do some custom drawing via drawRect: in one of my UIView subclasses.I noticed when I overrode drawRect: that the default background color of[详细]
2023-02-09 00:45 分类:问答Xcode -- finding dead methods in a project
I am curious if there are any tools that provide partial solutions for this.It is a tricky problem b开发者_如何学Pythonecause of performSelector . . . but a tool ought to at least be able to come up w[详细]
2023-02-06 15:08 分类:问答Convert a string ("MyExampleClass") into a class name (MyExampleClass)
I want to convert a string to a class name. Imagine that I have a string, which changes, containing a class name, for example, the string \"MyExampleClass\". Now, I want to create an object of the cla[详细]
2023-02-04 14:35 分类:问答creating instance-variables at runtime?
hey i\'ve got a little confusion here.. I\'m using the EyeTunes Framework for a little learning project. It\'s an iTunes Controller.[详细]
2023-01-23 20:19 分类:问答Intercept Objective-C delegate messages within a subclass
I have a subclass of UIScrollView in which I need to internally respond to scrolling behaviour. However, the viewcontroller will still need to listen to scrolling delegate callbacks, so I can\'t outri[详细]
2023-01-12 08:05 分类:问答class_getClassMethod often returns nil (seems to work only with class level Methods)
Im currently trying to use some generated code from http://sudzc.com/ This code is not perfectly adapted to my web services, so I tried to add Categories to some of the generated classes and to exchan[详细]
2023-01-10 23:31 分类:问答