Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface MyModel : JOBIBaseModel
- @property (nonatomic, strong) NSString * urlString;
- -(NSURL *)getUrl;
- @end
- @implementation MyModel
- -(NSURL *)getUrl{
- return [NSURL URLWithString:self.urlString];
- }
- @end
- NSURL *url=Obj.getUrl;
- @class MyArrayModel;
- RLM_ARRAY_TYPE(MyArrayModel);
- @interface MyModel : JOBIBaseModel
- @property (nonatomic, strong) RLMArray <MyArrayModel> * strings;
- @end
- @implementation MyModel
- -(NSURL *)getUrl{
- return [NSURL URLWithString:self.urlString];
- }
- @end
- @interface MyArrayModel : JOBIBaseModel
- @property (nonatomic, strong) NSString * urlString;
- -(NSURL *)getUrl;
- @end
- @implementation MyArrayModel
- -(NSURL *)getUrl{
- return [NSURL URLWithString:self.urlString];
- }
- @end
Add Comment
Please, Sign In to add comment