Guest User

Untitled

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @interface MyModel : JOBIBaseModel
  2.  
  3. @property (nonatomic, strong) NSString * urlString;
  4.  
  5. -(NSURL *)getUrl;
  6.  
  7. @end
  8.  
  9. @implementation MyModel
  10.  
  11. -(NSURL *)getUrl{
  12. return [NSURL URLWithString:self.urlString];
  13. }
  14.  
  15. @end
  16.  
  17. NSURL *url=Obj.getUrl;
  18.  
  19. @class MyArrayModel;
  20. RLM_ARRAY_TYPE(MyArrayModel);
  21. @interface MyModel : JOBIBaseModel
  22. @property (nonatomic, strong) RLMArray <MyArrayModel> * strings;
  23. @end
  24.  
  25. @implementation MyModel
  26. -(NSURL *)getUrl{
  27. return [NSURL URLWithString:self.urlString];
  28. }
  29. @end
  30.  
  31. @interface MyArrayModel : JOBIBaseModel
  32.  
  33. @property (nonatomic, strong) NSString * urlString;
  34. -(NSURL *)getUrl;
  35.  
  36. @end
  37.  
  38. @implementation MyArrayModel
  39. -(NSURL *)getUrl{
  40. return [NSURL URLWithString:self.urlString];
  41. }
  42. @end
Add Comment
Please, Sign In to add comment