Questions tagged [objective-c-runtime]

The Objective-C runtime is a runtime support library provided with an implementation of the Objective-C language. Its API allows dynamically creating and configuring classes at runtime, as well as introspecting existing classes, methods, properties, and method implementations.

Filter by
Sorted by
Tagged with
4
votes
2answers
136 views

Generate prime factorisations of factorial numbers

The code was written to generate the factorisation of numbers into primes in ascending order. E.g 3! ='2 * 3', 4!='2^3 * 3'. When I have huge numbers such as 100!, the run time becomes a problem. I ...
1
vote
0answers
78 views

Runtime function in Swift

I have the following case, I need to delete a specific observer for the firebase database reference, so I made a code that looks something like it looks to the ...
3
votes
0answers
435 views

UIScrollView Category utility function for auto sizing contentSize

I wanted a utility function on UIScrollView to automatically size the contentSize based on the content inside the scrollView. How is this? ...
5
votes
1answer
5k views

Generic class for displaying UIAlertView / UIAlertController on iOS

To address backwards compatibility for UIAlertView, I have come up with an interface that would seem to work for both iOS ...
4
votes
1answer
1k views

Dynamically setting unknown properties of a subclass from parent class in Objective-C

I'm doing my best to explain how this works, but it's pretty confusing and lengthy. Let me know if there's something I can do to clarify. I'm building a class that models a custom Plist and sets its ...