Quick help for custom function in ios

How to show Quick Help for the methods we wrote ...? As for the built-in function, when we right-click on it and click "Quick Help", we get all the information about this method that I want to do for user methods, so that everyone knows that this method accepts which parameter and each parameter, for what purpose? For more information, see These two images:

THis image shows when click on inbuilt function of UITextField

THis image shows when click on user defined function of UITextField

+4
source share
2 answers

Below is the solution . Also check the documentation on Apple . You may need to create a set of documents and install it in Xcode.

Edit: Here is another similar message, How do you populate the Xcode 4 "Option + Click" popover?

+1
source

There is an open source tool appledoc that helps with this. You can provide your documentation in header files, and then run the appledoc script, which (depending on your settings) will generate documents, install them in Xcode, create HTML for documentation, as well as rss feeds so that changes to the documentation can be published.

+1
source

Source: https://habr.com/ru/post/1439314/


All Articles