Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-20147] iOS: Ti.Contacts.showContacts() selectedPerson returns … #7585

Merged
merged 1 commit into from Dec 23, 2015

Conversation

sriks
Copy link
Contributor

@sriks sriks commented Dec 16, 2015

TiContactsPerson* person = nil;
if ([TiUtils isIOS8OrGreater] && (ABAddressBookGetAuthorizationStatus() != kABAuthorizationStatusAuthorized)) {
// In iOS 8 selected contact is returned without requiring user permission. But we cannot query metadata like recordid.
person = [[[TiContactsPerson alloc] _initWithPageContext:[self executionContext]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this shifted again or is Github messing stuff up? (http://abload.de/img/bildschirmfoto2015-12fna51.png)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like objective-c style method formatting is the issue. Changed it to single line. Please check.

description: For iOS 9 and later, use the [identifier](Titanium.Contacts.Person.identifier) property.
description: For iOS 9 and later, use the [identifier](Titanium.Contacts.Person.identifier) property.
In iOS 8, a contact can be selected without requiring User permission. In such case this
property returns -1.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the validate.py accept this change? The format for multiline yaml should be:

description: |
    For iOS 9 and later, use the [identifier](Titanium.Contacts.Person.identifier) property. 
    In iOS 8, a contact can be selected without requiring User permission. In such case this 
    property returns -1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validate.py is not complaining. But I did change to use new line format. Please check.

AngelkPetkov added a commit that referenced this pull request Dec 23, 2015
[TIMOB-20147] iOS: Ti.Contacts.showContacts() selectedPerson returns …
@AngelkPetkov AngelkPetkov merged commit 9aaa978 into tidev:master Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants