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.
我正在尝试将照片保存到目录中,但是为了停止复制我正在使用时间戳,所以。但是我收到的错误是未使用的变量时间戳。我怎样才能清除这个?
NSString *timestamp = [NSString stringWithFormat:@"%HatsImage",unixtime];
假设 unixtime 是 long 类型,请执行以下操作:
NSString *timestamp = [NSString stringWithFormat:@"%ldHatsImage",unixtime];