Objective C convert number to NSNumber

前端 未结 5 615
情深已故
情深已故 2021-01-03 19:43

Why doesn\'t this please the compiler? Casting is supposed to work like in C as I can read here How to cast an object in Objective-C.

[p setAge:(NSNumber*)10         


        
5条回答
提交回复
热议问题