Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9012551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:01:44+00:00 2026-06-16T03:01:44+00:00

In my app i am having 7 button i am show 3 button in

  • 0

In my app i am having 7 button i am show 3 button in that view after pressing down arrow it show other 3 button

1.Facebook share
2.twitter share
3.tell a friend
4.report
5.starter guide
6.visit my web site
7. feed back

     LIKE THIS MY VIEW
    ====================
          ^        ---->up arrow

      facebook share

      Twitter share

      Tell a friend

           V      ---->down arrow

i am using mailcomposerview for “tell a friend” button and “report” button

when i press “Tell a Friend” or “report” button it opens mailcomposerview after closing that i am not able to move the up and down arrow……if i press the up and down arrow it open the same mail composerview,its also not opening facebook share and twitter share

please help me to fix this issue

my coding when arrow pressed

 -(void)arrTapped1:(id)sender
 {
CCMenuItem *item2=(CCMenuItem*)sender;
int k=item2.tag;
    ////CCLOG(@"k tapp=%dhelp=%d",k,helpVal);

    NSLog(@"HelpVal%i",helpVal);
if(k==51)
{
    if(helpVal<3)
    { 
        id action1=[CCMoveBy actionWithDuration:0.3 position:ccp(0,+260)];
        id callfun1=[CCCallFunc actionWithTarget:self selector:@selector(enabled1) ]; 

        [item2 setIsEnabled:YES];
        [(CCSprite*)[self getChildByTag:10] runAction:[CCSequence actions:action1,callfun1,nil]];
        [self performSelector:@selector(downWardsMove)];
            }

}
else //if(k==50)
        {
    if(helpVal>1)
    {  

        id action1=[CCMoveBy actionWithDuration:0.3 position:ccp(0,-260)];
        id callfun1=[CCCallFunc actionWithTarget:self selector:@selector(enabled1) ]; 
        [item2 setIsEnabled:YES];

        [(CCSprite*)[self getChildByTag:10] runAction:[CCSequence actions:action1,callfun1,nil]];
        [self performSelector:@selector(upWardsMove)];
    }   } }

    //code for upwards & downwards move
    //--------------------------------

  -(void)upWardsMove
   {
      [upArrItem setIsEnabled:NO];
  [downArrItem setIsEnabled:NO];
  self.isTouchEnabled=NO;
  helpVal--;
  [(CCMenu*)[self getChildByTag:53] setVisible:YES];
  [downArrItem setIsEnabled:YES];
      if(helpVal==1)
  {
    [(CCMenu*)[self getChildByTag:52] setVisible:NO];
    [upArrItem setIsEnabled:NO];
  } 
   }


-(void)downWardsMove
 {
    [upArrItem setIsEnabled:NO];
[downArrItem setIsEnabled:NO];
self.isTouchEnabled=NO;
    helpVal++;
    [(CCMenu*)[self getChildByTag:52] setVisible:YES];
[upArrItem setIsEnabled:YES];
if(helpVal==3){
    [(CCMenu*)[self getChildByTag:53] setVisible:NO];
    [downArrItem setIsEnabled:NO];
}
}
 -(void)enabled1
  {
self.isTouchEnabled=YES;
[upArrItem setIsEnabled:YES];
[downArrItem setIsEnabled:YES];
if(helpVal==3)
{
    [(CCMenu*)[self getChildByTag:53] setVisible:NO];
    [downArrItem setIsEnabled:NO];
}
if(helpVal==1)
{
    [(CCMenu*)[self getChildByTag:52] setVisible:NO];
    [upArrItem setIsEnabled:NO];
}
   }

 //sending mail code
//------------------

-(void)sendMail
{
  mailComposer = [[UIViewController alloc] init];
  [[[CCDirector sharedDirector] openGLView] addSubview:mailComposer.view];
  MFMailComposeViewController *mailController= [[MFMailComposeViewController alloc] init];                
  mailController.mailComposeDelegate = self;    
  [mailController setSubject:msgSubject];
  [mailController setMessageBody:mailContent isHTML:YES];
  NSArray *toRecipients = [NSArray arrayWithObject:@"Info@ask.com"];
  [mailController setBccRecipients:toRecipients];
  [mailComposer presentModalViewController:mailController animated:NO];
  mailComposer.view.transform = CGAffineTransformMakeRotation( CC_DEGREES_TO_RADIANS(90.0f ) );
  [mailController release];
  [[CCDirector sharedDirector] setDeviceOrientation: kCCDeviceOrientationLandscapeRight]     
  }

 -(void)mailComposeController:(MFMailComposeViewController*)mailController didFinishWithResult: (MFMailComposeResult)result  error:(NSError*)error
 {
    [mailComposer dismissModalViewControllerAnimated:YES];
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:01:48+00:00Added an answer on June 16, 2026 at 3:01 am

    Here is a part of a code that I used in my apps and it works well in iOS 4.0 – iOS 6.0. Take a look:

    -(void)sendMessageToEmail:(NSString *)message withSubject:(NSString *)subject
    {
        if([self _isIOS6andHigher]) {
    
            NSArray *activities = @[message];
            UIActivityViewController *viewController = [[UIActivityViewController alloc] initWithActivityItems:activities applicationActivities:nil];
    
            AppController *app = (AppController*) [[UIApplication sharedApplication] delegate];
            [[app navController] presentViewController:viewController animated:YES completion:nil];
            [viewController release];
    
        } else {
    
            MFMailComposeViewController* mailController = [[MFMailComposeViewController alloc] init];
            mailController.mailComposeDelegate = self;
            [mailController setSubject:subject];
            [mailController setMessageBody:message isHTML:NO];
    
            AppController *app = (AppController*) [[UIApplication sharedApplication] delegate];
            [[app navController] presentModalViewController:mailController animated:YES];
            [mailController release];
        }
    }
    
    - (void)mailComposeController:(MFMailComposeViewController*)controller
          didFinishWithResult:(MFMailComposeResult)result
                        error:(NSError*)error
    {
        [controller dismissModalViewControllerAnimated:YES];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my iphone app i am having a button, when I click on the
I'm having an app(site), e.g. on Facebook, domain is mydomin.com . Just wondering if
I am creating an app that is having a UIWebView which contains an advert.
I am currently making a facebook app and am having some problems with permissions.
Im having a problem with my app that causes it to crash when no
I am having some issues with the new facebook like button. It shows up
I'm working on an app that requires a pushing a view that is full
I'm having a weird problem with an in-app purchase... After I'm requesting the product
Here's how I set up my app. I have a root view that loads
I am creating an app that that uses a tabbed view. I pull data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.