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

How to use acs, or how backend works.( i have read heaps but if anyone could just clear my thoughts it would be great)

$
0
0

Hi,

Im a newbie trying to develop and app through ACS and titanium studio. Iv deleoped my front end quite nicely but as for integrating ACS, I think iv got the fundamental idea of how to use it wrong.

i know its silly but take a look at the code and let me know. (im trying to disply user's first name on my profile page) (

var view=Ti.UI.createView({
        width: '100%',
        height: '100%',
        backgroundColor: '#ffffff'
    });
 
 
Cloud.Users.showMe(function (e) {
        if (e.success) {
            var user = e.users[0];
 
            var example= Ti.UI.createLabel({
                text: user.first_name,
                color:'#3c3b3b',
                font: { fontFamily:'Roboto-Light', fontSize:'18dp'}
                });
 
            view.add(example);
 
        } else {
            alert('Error:\n' +
                ((e.error && e.message) || JSON.stringify(e)));
        }
    });

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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