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

var button[i] = Titanium.UI.createButton??

$
0
0

Hi, How can I add multiple-buttons in my view through the controller?

For example I did:

for (var i=0; i < 4; i++){
    var button[i] = Titanium.UI.createButton({
    title: i,
    width:"100", 
    height:"50"
    });
    $.My_view.add(button[i]);
}
but it's not working with
var button[i]
Need your help! Thanks!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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