Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Module development: Invalid method createView

$
0
0

I've been searching for the past few hours and I cannot figure this out. I'm creating a titanium module for iOS in Obj-C. The module compiles fine. My test project can see the module, however, I keep getting this error:

Invalid method (createView) passed to TiVolumesliderModule at app.js

My app.js contains

var VolumeSlider = require('ti.volumeslider'); //-- this works
Titanium.API.info("module is => "+VolumeSlider); //-- this works: module is => [object TiVolumesliderModule]
 
var volumeSlider = VolumeSlider.createView({
  width: '90%',
  height: 'auto',
  color: '#000',
  bottom: 10,
});
Rather than post all my Obj-C files, I put them in a pastebin. The URL is http://pastebin.com/MfuVEaAL

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>