swizzling Questions
2
I'm swizzling willMoveToWindow: and I came across an issue where it was being called twice on views.
When a new view controller is pushed onto a UINavigationController,
willMoveToWindow: is cal...
Castle asked 27/12, 2015 at 20:29
4
Solved
I have a category on NSObject which supposed to so some stuff. When I call it on an object, I would like to override its dealloc method to do some cleanups.
I wanted to do it using method swizzlin...
Caswell asked 29/2, 2012 at 18:6
0
I have one scenario where I need to change value of Date in swift while doing XCUITest.
I mean if current date returns 2022/07/06 22:31, I just want it should use some different time while running ...
6
Solved
How can I implement method swizzling in Swift 3.0 ?
I've read nshipster article about it, but in this code's chunk
struct Static {
static var token: dispatch_once_t = 0
}
the compiler gives m...
2
Solved
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...
Kicker asked 16/7, 2010 at 17:45
8
Solved
Before Swift, in Objective-C I would swizzle or hook methods in a class using <objc/runtime.h>.
If anyone has any info on the topic of modifying Swift's runtime and hooking functions like Cy...
2
Solved
I am messing around with method swizzling and would like to call the original function after performing a method_exchangeImplementations. I have two projects I have setup for this.
The first proje...
Insobriety asked 17/8, 2016 at 18:28
1
The problem is this:
I need to be able to get analytics on didSelectRowAtIndexPath throughout a big existing app with lots of tableViews.
My first thought of this is doing method swizzling on d...
Edlin asked 4/10, 2013 at 22:34
2
I'am using FCM to send notifications to iOS apps. The notifications are received on the device well, but I can not get the "Opened" or "Conversion " rate in the Notification console GUI. It always ...
Parietal asked 31/7, 2017 at 13:29
1
I am working with an app using Firebase Cloud Messaging for Push Notification. After reading its documentation, I have a little confuse about "Swizzling disabled", I tried to find some tutorials wh...
Colliery asked 19/2, 2019 at 9:29
3
Objective-C declares a class function, initialize(), that is run once for each class, before it is used. It is often used as an entry point for exchanging method implementations (swizzling), among ...
1
Swizzling in Swift 4 no longer works.
Method 'initialize()' defines Objective-C class method 'initialize', which is not permitted by Swift
This is something I have found a solution to so wa...
Track asked 22/9, 2017 at 9:15
1
Solved
Are method swizzling and isa swizzling the same thing? If not, then what is isa swizzling?
Wheat asked 10/8, 2016 at 15:18
2
Solved
Currently experimenting with method swizzling in Objective-C and I have a question. I am trying to understand the proper way to method swizzle and after researching online I stumbled upon this NSHi...
Peptonize asked 28/12, 2015 at 23:18
1
Solved
I have a private class (both declared & defined within .m) as an addition to an implementation of a different class, that happens to use that private class internally.
I'd like to swizzle one ...
2
Solved
I have a class set up that ideally will read the methods of any class passed in and then map all of them to on single selector at runtime before forwarding them off to their original selector.
Th...
Adjutant asked 11/2, 2012 at 17:58
2
Solved
I am trying to modify behaviour of a program (i dont have it's source) using SIMBL. I used class dump and found out that I need to overide an instance method
This method is in the class called con...
Benford asked 20/3, 2011 at 21:23
2
Solved
Is there any current information on wether or not method swizzling is legal/illegal on the App Store?
The only data point I can find is the Three20 framework shakeup a while back, which star...
Spiky asked 12/1, 2012 at 11:26
1
Solved
I'm trying to implement isa swizzling because I need some actions to happen in dealloc method of certain object. I'm overriding - (Class)class; method to return original class (as KVO does). Everyt...
Rape asked 27/6, 2012 at 7:11
1
Solved
More than once I've encountered the situation where a UIView (subclass) ends up on a fractional offset, e.g. because its dimensions are odd and it's centered, or because its location is based on th...
Bunnie asked 9/1, 2011 at 3:17
3
Solved
I try to figure out how things really work. So I thought when I would overwrite certain methods using categories, I would get interesting NSLogs.
@implementation UIView(Learning)
- (UIView *)hitTe...
Watchful asked 28/11, 2010 at 0:53
1
Solved
I have some great troubles overriding some functions in an external App that I use SIMBL to hook in to.
In this app, there is a class - let's call it "AppClass". In this class there is a function,...
5
Solved
Suppose I want to store a complicated data structure (a tree, say) to disk. The internal pointers which connect nodes in my data structures are pointers, but I can't just write these pointers to di...
Oram asked 10/1, 2010 at 17:56
1
Solved
I tried both JRSwizzle, and MethodSwizzle. They compile fine on the simulator but throw a bunch of errors when I try to compile for Device (3.x)
Has anyone had any luck swizzling on the iphone? Wh...
Sensualism asked 28/10, 2009 at 14:28
1
Solved
I am looking for a way to implement the swizzle functionality found in HLSL in C#, for those of you unfamiliar with what this is - it is used for easy vector element access.
Vector4 v1, v2;
// (t,...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.