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.
我的问题是我必须输入并排列一些图像名称,但是这些图像名称来自扩展名,有没有一种简单的方法可以从我的图像名称中删除 .png?
提前致谢。
this is the good way for do that:
NSString *nameWithoutExtention = [@"yourImageName.ext" stringByDeletingPathExtension];