Sometimes with xib, change the layout needs to re-run to see the effect, for more complex applications especially waste time, the following describes a tool dyci-do not need to re-run application, you can see the effect
Yci's website: https://github.com/DyCI/dyci-main
Can be downloaded to look at the source code and sample codes.
The installation method is as follows, open terminal to enter the following command
git clone https://github.com/DyCI/dyci-main.git
CD dyci-main/install/
./install.sh
1. If the installation succeeds, Xcode's product menu will have one more item at the bottom: Recompile and inject.
2, need to reference dyci.framework this library in the project document. You just need to add this library. No additional code is required.
3, the other link flag in the project needs to add-OBJC.
Official documentation mentions: Make sure, HAVE-OBJC flag in other Linker Flags setting
Because there is a category in the Dyci Library, you need to add this flag to make the category in the library effective.
4, after modifying the source program, you need to save first, and then press CTRL + X. If successful, the console will have output.
5, want to see the changes in the situation, need to re-enter the interface before you can.
Dyci--ios Dynamic Code Injection