Mobile applications (apps) have become widely adopted, and the need for fast development tools has significantly increased. Apple iOS is one of the worlds' most popular mobile platforms, still it has received much less research achievements compared to that for the Android platform. Mobile app development is a tedious process and requires special experience and skills by developers; not to mention that a large portion of mobile app developers are novice or come from non-computing background. Most mobile apps need to persist their data locally. However, persisting iOS apps' data using existing tools and frameworks can be a tedious task for novice developers. In this paper, we present an approach and a tool named CDGenerator to assist novice developers in persisting their iOS application's data locally. Our approach utilizes Model-To-Model and Model-To-Code transformation methods, as well as, leveraging the Domain Specific Visual Language (DSVL) and Domain Specific Textual Language (DSTL) to create iOS data persistence components. We have evaluated CDGenerator using a preliminary experiment conducted on a group of developers with different levels of experiences and from different backgrounds. The experiment results show that our approach can be more effective and usable even by novice developers.