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.
我正在尝试将 int 类型的简单整数传递给 void 方法,如下所示:
-(void)deleteGroup{
我知道我应该这样做:
[self deleteGroup withInt: 3];
但我似乎无法找出正确的解决方案
你需要改变
-(void)deleteGroupWithInteger:(NSInteger)intValue{
然后使用
[self deleteGroupWithInteger:3];