Android:
public class DatabaseHandler extends SQLiteOpenHelper{
private interface Tables {
final static String CONTACT_BOOK = "ContactBook";
}
//Access this Tables.CONTACT_BOOK to assign in some variables
}
I need to convert above code to iOS: I tried this:
// classA.m
@interface Tables : NSObject //Create @interface here
{
NSString *CONTACT_BOOK;
}
@end
@implementation Tables
-(id)init
{
CONTACT_BOOK = @"ContactBook";
return self;
}
@end
@implementation classA
I didn't know this is right or wrong, can any one suggest me, how to do this in iOS.
Thanks in Advance