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.
重複したリクエストを避けるために、サーバーリクエストを行うときに一意のIDを追加する必要があります。
このコードを使用して一意の ID を作成し、サービスをヒットしながら各アイテムを使用します。
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault); NSString *uuidString = (__bridge NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid); NSLog(@"Uni ID %@",uuidString);