How can open LinkedIn Comapny Url in iPhone app programmatically?

前端 未结 3 1220
离开以前
离开以前 2021-01-14 21:26

I want open LinkedIn company Url from my iPhone app to LinkedIn app by using programmatically. I am use following code but not working please help me ....

st         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-14 21:54

    You misuse the Format, I think what you wanted it to do should be done like this:

    string = [NSString stringWithFormat:@"linkedin://%@/%@", company, COMPANY_ID];
    

    assuming that company and COMPANY_ID are some strings you declared elsewhere.

提交回复
热议问题