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

  • Home
  • SEARCH
  • 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 8560715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:20:25+00:00 2026-06-11T16:20:25+00:00

I am working for Qr generator application and for that I have nice kyupay

  • 0

I am working for Qr generator application and for that I have nice kyupay Library.

In that Library I need to pass string value and it returns QR Image.

It’s working nice for text,Email and etc…

But Now i wants to create QR Image for Contact and Event And i don’t know how to do this.

so My problem is what should be the logic for that ????

please suggest me or if you have code for that then please Share it.

  • 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-11T16:20:26+00:00Added an answer on June 11, 2026 at 4:20 pm

    Thanks for respond me on my question.

    I finally creates a function that returns contact Qr code string.

    It’s easy but too long.

    we have to check for data inputs from user and append sting as per data and create string.

    I am Posting my code so it may help others and save theirs time.

    -(NSString *)GenerateStringForContact{
    
        NSString *str = @"";
        NSMutableArray *arr1 =[[NSMutableArray alloc] init];
    
        for (int i=0 ; i<[arrayAttributeName count]; i++) {
    
            if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"First Name"]) {
                if ([strContactType isEqualToString:@"ContactMecard"]) {
                 [arr1 addObject:@"N:"];
                }else{
                 [arr1 addObject:@"FN:"];   
                }
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Last Name"]) {
    //            [arr1 addObject:@"N:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Phone"]) {
                [arr1 addObject:@"TEL:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Email"]) {
                [arr1 addObject:@"EMAIL:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"URL"]) {
                [arr1 addObject:@"URL:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Nickname"]) {
                [arr1 addObject:@"NICKNAME:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Title"]) {
                [arr1 addObject:@"TITLE:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Organization"]) {
                [arr1 addObject:@"ORG:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Birthday"]) {
                [arr1 addObject:@"BDAY:"];
            }else if ([[arrayAttributeName objectAtIndex:i] isEqualToString:@"Note"]) {
                [arr1 addObject:@"NOTE:"];
            }
    
        }
    
        NSMutableArray *contDetail = arrayAttributeValue;
    
        if ([strContactType isEqualToString:@"ContactMecard"]) {
            str = @"MECARD:";
    //         arr1 = [[NSArray alloc] initWithObjects:@"N:",@"TEL:",@"EMAIL:",@"URL:",@"NOTE:",@"NICKNAME:",@"BDAY:",@"ADR:",nil];
    
        }else{
    
           str = @"BEGIN:VCARD";
    //       arr1 = [[NSArray alloc] initWithObjects:@"N:",@"TEL:",@"EMAIL:",@"URL:",@"NOTE:",@"NICKNAME:",@"BDAY:",@"ADR:",@"TITLE:",@"ORG:",nil];
        }
    
        BOOL count = TRUE;
        for (int i =0; i <[contDetail count]; i++) {
    
            if (![[contDetail objectAtIndex:i] isEqualToString:@""]) {
    
                NSString *tmp2 =@"";
    
                if (i == 0 || i == 1) {
                    if (count) {
    
    
                        if ([strContactType isEqualToString:@"ContactMecard"]) {
    
                            tmp2 = [NSString stringWithFormat:@"%@,%@",[contDetail objectAtIndex:0],[contDetail objectAtIndex:1]];
    
                            NSString *tmp = [NSString stringWithFormat:@"%@%@",[arr1 objectAtIndex:i],tmp2];
    
                        str = [NSString stringWithFormat:@"%@;%@",str,tmp];
    
                        }else{
                            tmp2 = [NSString stringWithFormat:@"%@ %@",[contDetail objectAtIndex:0],[contDetail objectAtIndex:1]];
    
                            NSString *tmp = [NSString stringWithFormat:@"%@%@",[arr1 objectAtIndex:i],tmp2];
    
                            str = [NSString stringWithFormat:@"%@\n%@",str,tmp];
                        }
    
                        count = FALSE;
                    }
    
                }else{
    
                    tmp2 = [contDetail objectAtIndex:i];
                    NSString *tmp = [NSString stringWithFormat:@"%@%@",[arr1 objectAtIndex:i-1],tmp2];
    
                    if ([strContactType isEqualToString:@"ContactMecard"]) {
    
                        str = [NSString stringWithFormat:@"%@;%@",str,tmp];
    
                    }else{
                        str = [NSString stringWithFormat:@"%@\n%@",str,tmp];
                    }
    
    
                }
    
            }
        }
    
        if (![strContactType isEqualToString:@"ContactMecard"]) {
            str = [NSString stringWithFormat:@"%@\nEND:VCARD",str];
    
    
        }
        NSLog(@"here string for generate code %@",str);    
    
        return str;
    }
    

    Thanks….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application that will have 2 kinds of users, teachers
I have an ASP.NET 2.0 application that is working fine in our local environment.
I'm building my first application that requires a calendar. I have it working great
I am working with a team on an application that has a report generator
I am working on an application that will have online and offline components and
I'm currently working a problem that requires my web application to generate a chart
for the application I am working on I have to generate consolidated report where
I am working on asp.net application and I have generated entity model (edmx) from
I have been working on a LiftSuggest - an automatic Product Recommendations generator. Now,I
I'm working on a project that aims to replace our current PDF generator with

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.