Hi Wei Chen,I couldn't test the URL you provided, but out of curiosity, what is the spatial reference of the WMTS layer?Here are some code snippets that I used to load an AGSWMTSLayer:
//WMTSViewController.h
#import <UIKit/UIKit.h>
#import <ArcGIS/ArcGIS.h>
//URL of WMTS
#define wmtsURL @"http://....../wmts"
@interface ViewController : UIViewController <AGSMapViewLayerDelegate, AGSWMTSInfoDelegate> {
//container for map layers
AGSMapView *_mapView;
}
//map view is an outlet, can associate with UIView
@property (strong, nonatomic) IBOutlet AGSMapView *mapView;
//add the WMTS properties...
@property (strong, nonatomic) AGSWMTSInfo *wmtsInfo;
@property (strong, nonatomic) AGSWMTSLayer *wmtsLayer;
@end
//WMTSViewController.m
#import "WMTSViewController.h"
@implementation ViewController
@synthesize mapView = _mapView;
- (void)viewDidLoad
{
[super viewDidLoad];
self.mapView.layerDelegate = self;
self.wmtsInfo = [[AGSWMTSInfo alloc] initWithURL: [NSURL URLWithString:wmtsURL]];
self.wmtsInfo.delegate = self;
}
// add AGSWMTSLayer
- (void) wmtsInfoDidLoad:(AGSWMTSInfo *) wmtsInfo{
NSArray *layerInfos = [wmtsInfo layerInfos];
AGSWMTSLayerInfo *layerInfo = [layerInfos objectAtIndex:0];
self.wmtsLayer = [wmtsInfo wmtsLayerWithLayerInfo:layerInfo andSpatialReference:nil];
[self.mapView addMapLayer:self.wmtsLayer withName:@"wmts Layer"];
}
//other functions, etc.
Hope this helps!