There is no native method from Apple to get this time point after a certain month. There is an open source library on Github that helps with date calculation https://github.com/DanisFabric/DateSuger You can check it out
I would like to recommend you a commonly used time processing library in open source libraries - DateTools, which can accomplish almost everything you want. If you are interested, you can refer to how it is implemented. github address: https://github.com/MatthewYork/DateTools
There is no native method from Apple to get this time point after a certain month. There is an open source library on Github that helps with date calculation
https://github.com/DanisFabric/DateSuger You can check it out
NSCalendar
I would like to recommend you a commonly used time processing library in open source libraries - DateTools, which can accomplish almost everything you want.
If you are interested, you can refer to how it is implemented.
github address: https://github.com/MatthewYork/DateTools