Creating Modules
Hey I'm trying to make a module.
My knowledge in Obj-C is basic but I'm still learning.
But I've succesfully created a module using the API/Doc
What I don't understand is how does the setup work?
I followed the Doc to create a CGRect…but after I implemented it in the way the doc says my module builds, but after I try to run the app after editing my app.js
the app crashes right away
So if anybody can Upload a simple module where a rect is created so I can see a good example or give a explanation how it works exactly that would be great.
Also for example after I got a rectangle created and I'd want to implement a way to drag this rectangle how would I go about coding this…
I mean where do I put the arguments and where do I put the code.
What would I need to do if in Titanium I create let's say a ImageView that would be draggable through my module.
like so:
var image = Ti.dragging.createImageView({
image: 'box.png',
width: 100,
height: 100
});
I've been following The iPhone's cookbook for a while now, and know how to code a draggable object…but this module way is making me confused.
Thanks in advance.