A +loadmethod that is part of any class in your application (not in any loaded structure) will be executed before main(). The full order of execution is given in the documentation +load( NSObject):
load , , , .
:
• , .
• +load .
• ++ C/++ __attribute__(constructor) .
• , .
:
• +load +load.
• +load +load .
, , , , .
, +load, , , main().