Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Finally I got the Answer and wanted to share it... I took a great help from [blog]: <a href="http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html" rel="nofollow">http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html</a></p> <pre><code>for (int x=0; x&lt;[emailArray count]-1; x++) { NSLog(@"%d). %@",x+1,[emailArray objectAtIndex:x]); NSString *element = [emailArray objectAtIndex:x]; NSArray *arr = [element componentsSeparatedByString:@" &amp; "]; if ([arr count]==1) { ++emailCount; } else{ int more = [[[arr objectAtIndex:1] substringToIndex:1] intValue]; emailCount+=(more+1); } } - (NSString *)findEmailAddresses:(UIView *)view depth:(NSInteger)count { NSString *eAddress = nil; if (!view) return eAddress; NSMutableString *tabString = [NSMutableString stringWithCapacity:count]; for (int i = 0; i &lt; count; i++) [tabString appendString:@"-- "]; NSLog(@"%@%@", tabString, view); if ([view isKindOfClass:[UITextField class]]) { // MAGIC: debugger shows email address(es) in first textField // but only if it's about max 35 characters if (((UITextField *)view).text) { eAddress = [NSString stringWithString:((UITextField *)view).text]; NSLog(@"FOUND UITextField: %@", eAddress ? eAddress : @""); [emailArray addObject:eAddress]; } } NSArray *subviews = [view subviews]; if (subviews) { for (UIView *view in subviews) { NSString *s = [self findEmailAddresses:view depth:count+1]; if (s) eAddress = s; } } return eAddress; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload