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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:09:37+00:00 2026-06-04T10:09:37+00:00

For example, I got something format like this: link://thisIsAction?param1=value1&param2=value2 and it may have one

  • 0

For example, I got something format like this:

link://thisIsAction?param1=value1&param2=value2

and it may have one param like this

link://thisIsAction?param1=value1

or don’t have any param:

link://thisIsAction

How can I extract the thisIsAction, and the param, and value?
The param may not start with the prefix param, it may just simple as p.

And I want the param and value return in a dict… How can I do so? Thanks.

  • 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-04T10:09:38+00:00Added an answer on June 4, 2026 at 10:09 am

    Convert the string to a NSURL and then use the API to extract different parts of it, including the query string parameters.

    You can get the host using

    NSURL *url = [NSURL URLWithString:yourUrlString]; 
    NSString *scheme = [url scheme]; // gives "link" 
    NSString *host = [url host];  // gives thisIsAction in your example
    NSString *query = [url query]; // gives "param=value1&param=value2"
    

    Documentation on it here

    As pointed out by @Rene, to get the query value in a dictionary, follow the top answer on Parse NSURL query parameter

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

Sidebar

Related Questions

I got the example in this link . I can't understand the addmove ,
GridView CurrentGrid =Grd_UserList; Grd_UserList.Columns.Clear(); ı have got this example, ı use Columns.Clear(); fonc. with
For example I got this 2 table dbo.fc_states StateId Name 6316 Alberta 6317 British
thank you for looking i got this example from my book but i cant
I have got the following XML grammar to detect a number like 1000 or
So I've got a ConfigurationSection/ConfigurationElementCollection that has a configuration like this: <mimeFormats> <add mimeFormat=text/html
I would like to create something like this: The copy, star, reply, details. Is
I have a small problem. I'm trying to do something like nikebetterworld.com 's parallax
For example i got a class and its got its own properties and i
For example I got a multi select box <select id =countries name=countries multiple=multiple> <option

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.