Some tips for IOS todayextension plugin development

Source: Internet
Author: User

1. The development of plug-ins should not use too large memory, light occasionally redraw the interface, the weight is directly displayed "Unable to load", personal situation test about 11M.

2. Originally package for AppStore package, with itools test package upgrade, may not be able to display the plug-in, please upgrade with itunes, or in the post will be able to display the normal

3. Use group to save data, apply delete will not delete the local data, if necessary, please set the nil manually

4. If you want to share the same. m file with the containing app, the quickest way is to go directly to the. m file and tick the response option on the right target menbership. But note that file references are confusing. h File Direct Import

5. If there are multiple applications to use the plug-in group,groupid try not to be the same, otherwise, if the key can be data confusion

6. Use static in the plug-in, as long as the application is not deleted, it will always exist

7. If you want to define a macro difference that comes from an app or plug-in, you can define it in a PCH file or search preprocessing, target->build setting, in the plugin Add parameters to the gcc-preprocessor-definitions.

8. Do not use a single case for shared files

Some tips for IOS todayextension plugin development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.