Hi,
I'm sharing my code for custom menu/setting table view. I thought this is a very nice solution to the problem I had.
So I had a menu/setting page which the content will change depending on what the user's doing to it and which in app purchase they had purchased.
I was doing it the old fashion way of returning exactly the right cell for the table view and end up with many many if, else and switch statements.
I decided my code was functional but will be a horror to maintain in the future. So I refactor the code by maintaining an NSArray for the cells and related section and header, footer etc. And the resultant code is what I'm sharing in Github. I found the solution works elegantly to my problem and my code is more maintainable in the future now.
Cheers
Get the code here
View the post here