Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
長いURL(アプリ内で作成したもの)から短いURLを取得する必要があります。これについてはすでに読んだと思いますが、ここSOではもう見つかりませんでした。
誰かがこれを指摘するためのコードや指示を持っていますか?
よろしくお願いします
私は通常、iCodeBlog の brandontreb からこれを使用します
NSString *apiEndpoint = [NSString stringWithFormat:@"*API URL=*%@",link]; NSString *shortURL = [NSString stringWithContentsOfURL:[NSURL URLWithString:apiEndpoint] encoding:NSASCIIStringEncoding error:nil];