Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3521] iOS: Facebook Button in a TableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-05-16T16:31:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:46:15.000+0000
Updated2012-08-30T04:59:27.000+0000

Description

Problem

The facebook login button does not work when added to a tableView.

However if you add a click event listener to the tableview:

fbTableView.addEventListener('click', function(){});

it works.

Test Code

Ti.Facebook.appid = '111111111111111'; // must also be specified in tiapp.xml
Ti.Facebook.permissions = ['publish_stream'];

var fbConnectButton = Ti.Facebook.createLoginButton({

style: 'normal'

});

var fbRow = Ti.UI.createTableViewRow({

selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE

}); fbRow.add(fbConnectButton);

var fbSection = Ti.UI.createTableViewSection({

headerTitle: 'Facebook'

}); fbSection.add(fbRow);

var fbTableView = Ti.UI.createTableView({

style: Titanium.UI.iPhone.TableViewStyle.GROUPED,
data: [fbSection]

}); win1.add(fbTableView);

Not sure if this is a bug or a documentation issue.

Ticket Reference: http://support-admin.appcelerator.com/display/FYA-29217-548">http://support-admin.appcelerator.com/display/FYA-29217-548

Comments

  1. Matthew Apperson 2011-07-06

    I am seeing this issue with android as well...
  2. Blain Hamon 2011-10-14

    Tested with 1.8 and 1.7.X. This issue was fixed in 1.8, but is an issue with tableviews in 1.7.x.
  3. Varun Joshi 2012-05-16

    Issue fixed with Release 2.0
  4. Neha Chhabra 2012-08-30

    closing.verified on: Tested with Titanium SDK: 2.2.0.v20120828153312 Tested with Titanium Studio:2.1.2.201208281351

JSON Source