Nuclear magnetic resonance (NMR) technique is a well-established powerful tool to study the physical and chemical properties of a wide range of materials. However, presently, NMR applications are essentially limited to materials in the condensed phase. Although magnetic resonance was originally demonstrated in gas phase molecular beam experiments, no application to gas phase molecular ions has yet been demonstrated. Here, we present a novel principle of NMR detection for gas phase ions based on a "magnetic resonance acceleration" technique and describe the design and construction of an apparatus which we are developing. We also present an experimental technique and some results on the formation and manipulation of cold ion packets in a strong magnetic field, which are the key innovations to detect NMR signal using the present method. We expect this novel method to lead new realm for the study of mass-selected gas-phase ions with interesting applications in both fundamental and applied sciences.