Author Archive

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
    if(editingStyle == UITableViewCellEditingStyleDelete)
        //remove the deleted object from your data source.

Event Delegate in Sencha Touch

listeners: {
        el: {
            tap: myHandler,
            delegate: 'img'

Here myHandler fn event is assigned to the img as a delegate

Incoming search terms:

  • sencha touch delegate listener

Logger in Sencha Touch

Ext.Logger.deprecate('Sample Message.');

Autosize the ScrollView to fit the content

CGFloat scrollViewHeight = 0.0f;
for (UIView* view in scrollView.subviews)
   scrollViewHeight += view.frame.size.height;

[scrollView setContentSize:(CGSizeMake(320, scrollViewHeight))];

Incoming search terms:

  • uiview size to fit content

get the duration for which an application runs.

function printTimeSinceStart( event )
  print (event.time/1000 .. " seconds since app started." )
Runtime:addEventListener("enterFrame", printTimeSinceStart)

The above code gives the time in milliseconds since the start of the application.

get the duration of an audio file in corona

audio.getDuration( audioHandle )

returns the duration in milliseconds.

get number of elements in an array.

table.maxn (t) returns the count of elements in the array.

reverse animation in corona

myAnim:reverse() reverses the animation in opposite direction

List View using jQuerymobile

Adding header Part in jquerymobile


Page 3 of 4212345...102030...Last »
We Can Build Your App for You. Lets Get Started !