path of the plist as a url?

Discussion in 'iOS Programming' started by iphonejudy, Jan 29, 2010.

  1. iphonejudy macrumors 6502


    Sep 12, 2008
    Can we use the path of the plist as a url?
    Now i used the below code
    id response = [self objectWithUrl:[NSURL URLWithString:mad:"http://user:pass@x.x.x.x:3000/reports.json"]]; //localhost

    Can i use plist path rather than http://user:pass@x.x.x.x:3000/reports.json?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    If I understand you correctly, you can use fileURLWithPath: to create an NSURL from a file path.

Share This Page