Enum values with underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead FIX: Replace '%d, animated = %d", __FUNCTION__, ' with '%ld, animated = %d", __FUNCTION__, (long)'
NSInteger的定义(如下),在64位系统中NSInteger是long, 32位中是int。所以"%d"在64位上当然是不足以够位长,这里修改为"%ld"合情合理。
原创文章,作者:wure,如若转载,请注明出处:https://blog.ytso.com/269391.html