Skip to content

@zoul /Foo.h
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Synthesized properties in Objective-C without instance variables
@interface Foo : NSObject {}
@property(assign) float foo;
@end
#import "Foo.h"
// Private interface
@interface Foo ()
@property(assign) float bar;
@end
@implementation Foo
@synthesize foo, bar;
- (void) doSomething
{
foo = bar = 1;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.