小编And*_*ych的帖子

在程序集'Dynamics.Ax.application中名为'Dynamics.Ax.application.<My Class Name>'的重复类型,

当我在Dynamics 2012中编译CIL时,我看到以下错误 -

名称为"Dynamics.Ax.application"的重复类型.在程序集'Dynamics.Ax.application,version = 6.0.947.280,culture ...

我试过了

  1. 从AOT删除课程
  2. 删除XppIL目录(c:\ Program Files\Microsoft Dynamics AX\60\Server\InstanceName\bin)
  3. 重启AOS
  4. 运行CIL编译

我还能尝试什么?

microsoft-dynamics axapta dynamics-ax-2012

3
推荐指数
1
解决办法
7654
查看次数

带有圆角和边框的UIButton

我只想在一侧设置UIButton的边框和圆角

我使用以下代码:

//set rounded corners on top
UIBezierPath *maskPath =  [UIBezierPath bezierPathWithRoundedRect:self.scanButton.bounds byRoundingCorners:(UIRectCornerTopLeft | UIRectCornerTopRight) cornerRadii:CGSizeMake(10.0, 10.0)];

CAShapeLayer *maskLayer = [CAShapeLayer layer];
maskLayer.frame = self.scanButton.bounds;
maskLayer.path = maskPath.CGPath;

self.scanButton.layer.mask = maskLayer;

// set border
self.scanButton.layer.borderColor = [UIColor blackColor].CGColor;
self.scanButton.layer.borderWidth = 2.0f;
[self.scanButton.layer setMasksToBounds:YES];
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

如何在上角设置适当的边框?

iphone cocoa-touch rounded-corners uibutton ios

2
推荐指数
1
解决办法
4259
查看次数