[TIMOB-3521] iOS: Facebook Button in a TableView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-16T16:31:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.8.0.1 |
Components | iOS |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:46:15.000+0000 |
Updated | 2012-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
I am seeing this issue with android as well...
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.
Issue fixed with Release 2.0
closing.verified on: Tested with Titanium SDK: 2.2.0.v20120828153312 Tested with Titanium Studio:2.1.2.201208281351