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 6026813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:29:59+00:00 2026-05-23T04:29:59+00:00

well i got this code: NSLog(@button pressed); NSString* myurl=@http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300×225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°; NSString *theurl=[myurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSMutableURLRequest *theRequest=[NSMutableURLRequest

  • 0

well i got this code:

NSLog(@"button pressed");
    NSString* myurl=@"http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300x225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°";
    NSString *theurl=[myurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

    NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:theurl] cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                        timeoutInterval:60.0];                                              

    NSURLResponse* response;
    NSError* error;
    NSData *imageData=[NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error];
    NSLog(@"%@",error); 
    NSLog(@"%@",response);
    NSLog(@"%@",imageData); 

    UIImage *myimage = [[UIImage alloc] initWithData:imageData];

    graphimage.image=myimage;   

Nothing realy special there…
but when i request the url: http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300×225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°

it requests with degrees like 30/40/50 … but i want values and not degreses in there which i get from the database.., how can i do 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-05-23T04:30:00+00:00Added an answer on May 23, 2026 at 4:30 am

    You will need to just get the degrees from a database and store them in a collection. Then you will be able to loop over the collection and add them to the string.

    //Get Degrees from database, store them in an array of NSNumbers
    ...
    //Pretend these are from a db
    NSArray *degreesFromDatabase = [NSArray arrayWithObjects:
                                        [NSNumber numberWithInt:35],
                                        [NSNumber numberWithInt:50],
                                        [NSNumber numberWithInt:25],
                                        [NSNumber numberWithInt:72],
                                        nil];
        //URL with all static content
        NSMutableString *myurl = [NSMutableString stringWithString:@"http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300x225&cht=p&chd=s:Uf9a&chdl="];
    
        int count = [degreesFromDatabase count];
    
        for(NSUInteger i = 0; i < count; ++i)
        {
            NSNumber *degree = [degreesFromDatabase objectAtIndex:i];
            [myurl appendFormat:@"%@%%C2%%B0", degree];
            if(i < count - 1)
                [myurl appendString:@"|"];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I initially got this code and all works well: <div class=rm> <button id=sub type=submit>
I got this code from someone and it works very well, I just want
Well I found this code , after running this I got some activity (as
I got this code working! I have a button inside a my UserControl dropped
I have a text like: I've got a date with this fellow tomorrow. Well
I've got to develop a multi-language code generator in C#. Well actually the idea
So, I've got this code I'm trying to update. It was written for visual
Let's assume i got this code: internal static bool WriteTransaction(string command) { using (SqlConnection
i've got this snazzy python code: import subprocess value = subprocess.Popen([php,./php/php_runner.php],stdout=subprocess.PIPE); the problem is,
I've got this code snnipet (the whole program compiles and links correctly): ... try

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.