iphone - Strange behavior with message composer on iOS 7 -


i'm working on app sends email , texts user's contact list.

i have view controller presents either mfmessagecomposeviewcontroller or mfmailcomposeviewcontroller, proper delegates setup. however, ui appears in composer seems offset , incorrect.

here's code present message composer:

if ([mfmessagecomposeviewcontroller cansendtext]) {     mfmessagecomposeviewcontroller *composer = [[mfmessagecomposeviewcontroller alloc] init];     composer.messagecomposedelegate = self;     composer.recipients = [nsarray arraywithobject:[self unformattedphonenumber:number]];     [self presentviewcontroller:composer animated:yes completion:nil]; } 

pretty simple stuff. however, when modal view controller presented, looks this:

the messed contact picker text field in message compose view controller

the contact picker text field (where can type in users name or number), appears briefly against black background, animates hidden behind navigation bar. stranger, contact text field starts first responder, can still type it, , here result when start searching contacts:

typing in contacts here

i've used mail , message composer plenty of times before in previous apps, bug i've never seen before. i've tried presenting vc in separate thread, validating phone number i'm using, , nothing seems change it. noticed if change window.backgroundcolor [uicolor whitecolor], contact text field has white background, seems portion of message view controller transparent. have similar issue mail composer.

anyone experienced or have thoughts?

are using uiappearance customize appearance in app? appears since navigation bar style on compose view not default.

this may caused customizing of views these internal components use, cause of them break. test out, rid of of uiappearance code , try again see if still occurs.

if case, need work around narrowing down uiappearance calls appearancewhencontainedin: internal classes not affected.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -