Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Justin R. Miller
12 years ago
Commit
f9b8a930eaa9987be011549687b3bda09c110156
1 parent
df225799
fixed missing functionality in category
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
MapView/Map/RMConfiguration.m
MapView/Map/RMConfiguration.m
View file @
f9b8a93
...
...
@@ -63,7 +63,22 @@ static RMConfiguration *RMConfigurationSharedInstance = nil;
+
(
id
)
brandedStringWithContentsOfURL
:
(
NSURL
*
)
url
encoding
:
(
NSStringEncoding
)
enc
error
:
(
NSError
**
)
error
{
return
[[
self
class
]
stringWithContentsOfURL
:
url
encoding
:
enc
error
:
error
];
NSMutableURLRequest
*
request
=
[
NSMutableURLRequest
requestWithURL
:
url
];
[
request
setValue
:[[
RMConfiguration
configuration
]
userAgent
]
forHTTPHeaderField
:
@"User-Agent"
];
NSError
*
internalError
=
nil
;
NSData
*
returnData
=
[
NSURLConnection
sendSynchronousRequest
:
request
returningResponse
:
nil
error
:
&
internalError
];
if
(
!
returnData
)
{
*
error
=
internalError
;
return
nil
;
}
return
[[[[
self
class
]
alloc
]
initWithData
:
returnData
encoding
:
enc
]
autorelease
];
}
@end
...
...
Please
register
or
login
to post a comment