我有Windows 8我有一个Windows应用程序wrtitten c#和visual studio 2013,并希望安装此应用程序.
我打开命令提示符写:
c:\..\instalutil.exe c:\projectfolder\filename.exe
Run Code Online (Sandbox Code Playgroud)
运行此代码后,它给我错误:
An exception occured during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied.
Run Code Online (Sandbox Code Playgroud)
这是我的电脑,我不知道它为什么需要访问权限?我不知道如何给予正确的特权.
我也将我的sercviceProcessInstaller帐户属性更改为LocalSystem,并尝试使用LocalService,但它们都给了我相同的错误.
我应该怎样做才能给予正确的特权?
在ios 5的应用程序中,我在地图中显示了一个按钮名称
例如,在商店详细信息视图中,有一个showinmap按钮,此按钮转到maps.google以显示用户的当前方向和商店方向,并且它还在这些方向之间绘制关于如何去那里的线
这是我的方法:
NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=Current+Location&daddr=%@,%@",lonlocation,latlocation];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
Run Code Online (Sandbox Code Playgroud)
但在ios 6中你知道没有谷歌地图应用程序.而不是苹果的新地图应用程序.
现在我的问题是如何在ios6版本中更改我的代码以使用苹果地图应用程序执行相同的工作?
我在一个ViewController中有3个ViewControllers
ViewPagerController = self - >它是一个viewController并具有UIPageViewController init
ProgramQuestionViewController =它基于ViewPagerController
QuestionViewController =我的内容视图它显示在ProgramViewController的中间
这是我的ViewPagerController
@interface ViewPagerController () <UIPageViewControllerDataSource, UIPageViewControllerDelegate, UIScrollViewDelegate,UIGestureRecognizerDelegate>
{
NSMutableArray *dataAnswers;
}
@property UIScrollView *tabsView;
@property UIView *contentView;
@property UIPageViewController *pageViewController;
@property (assign) id<UIScrollViewDelegate> actualDelegate;
@property (assign)bool isValidPage;
@property (assign)bool isSonraki;
// Tab and content cache
@property NSMutableArray *tabs;
@property NSMutableArray *contents;
// Options
@property (nonatomic) NSNumber *tabHeight;
@property (nonatomic) NSNumber *tabOffset;
@property (nonatomic) NSNumber *tabWidth;
@property (nonatomic) NSNumber *tabLocation;
@property (nonatomic) NSNumber *startFromSecondTab;
@property (nonatomic) NSNumber *centerCurrentTab;
@property (nonatomic) …Run Code Online (Sandbox Code Playgroud) objective-c ipad uigesturerecognizer ios uipageviewcontroller
我有一个地图视图,有10个商店位置,数据来自webservice.我只想推送到我的详细视图,以显示点击的商店的地址,电话和其他信息.
detailview当用户点击或在内部触摸到mapkit上的注释时,我需要将数据传递给我.在我mapview和我想知道的第一个中有10个注释,我如何理解或如何获得单击注释的注释ID?
这是我返回引脚的方法
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{
if ([annotation isKindOfClass:[MKUserLocation class]]) return nil;
static NSString* AnnotationIdentifier = @"AnnotationIdentifier";
MKPinAnnotationView* pinView = [[MKPinAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:AnnotationIdentifier];
pinView.animatesDrop=YES;
pinView.canShowCallout=YES;
pinView.pinColor=MKPinAnnotationColorPurple;
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton setTitle:annotation.title forState:UIControlStateNormal];
[rightButton addTarget:self
action:@selector(showDetails:)
forControlEvents:UIControlEventTouchUpInside];
pinView.rightCalloutAccessoryView = rightButton;
return pinView;
}
/* and my action method for clicked or tapped annotation: */
- (IBAction)showDetails:(id)sender{
NSLog(@"Annotation Click");
[[mtMap selectedAnnotations]objectAtIndex:0];
magazaDetayViewController *detail = [[magazaDetayViewController
alloc]initWithNibName:@"magazaDetayViewController" bundle:nil];
detail.sehir=@"";
detail.magazaAdi=@"";
detail.adres=@"";
detail.telefon=@"";
detail.fax=@"";
[self.navigationController …Run Code Online (Sandbox Code Playgroud) ios ×3
annotations ×1
installutil ×1
ios6 ×1
ipad ×1
iphone ×1
maps ×1
mkmapview ×1
objective-c ×1