Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod
IOS中的target action控件的实现
实现代码:
#import
interface Sample : NSObject {
SEL action;
id target;
}
property SEL action;
property (assign) id target;
-(void)addTarget:(id) t action:(SEL) s;
-(void)sample_dosomthing;
end
#import Sample.h
implem