我正在用KendoUI取代我的dot net charting.我正在显示分数分布图表.我希望所有的条形图都是相同的颜色,除了具有中位数分数和图例的条形图.如何为单个条纹着色独特的颜色?我如何为传奇这种新颜色着色?
下面是我的旧dotnet图表条形图,下面是我正在尝试用它取代它的新KendoUI图表.我只需要正确地着色,我们就会开展业务.任何帮助表示赞赏.

因此,我想将主页的方向锁定为纵向,仅限主页.
我正在使用标签栏控制器,因此初始视图是标签控制器,但首先出现的视图控制器是第一个标签,例如主页.
我想这样做,以便当用户旋转设备时,它不会旋转到此页面上的横向.但是所有其他页面都可以旋转.
我一直在搜索,似乎没有任何特定的iOS 7,并且特定于iOS 7的那个不起作用...
请帮帮忙,谢谢!
下面的图片描述了这个页面我想要发生的事情.

我正在尝试以编程方式将navigationBar添加到tableViewController:

当我来自PUSH Segue时,构建器会添加一个带导航项的导航栏,就像我想要的那样.
但问题是,当我来自一个MODAL Segue时,我尝试添加一个代码如下:
UINavigationBar *naviBarObj = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, -260, 320, 44)];
[self.view addSubview:naviBarObj];
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target:self action:@selector(cancelButtonPressed)];
UIBarButtonItem *doneItem = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleBordered target:self action:@selector(doneButtonPressed)];
UINavigationItem *navigItem = [[UINavigationItem alloc] initWithTitle:@"Navigation Title"];
navigItem.rightBarButtonItem = doneItem;
navigItem.leftBarButtonItem = cancelItem;
naviBarObj.items = [NSArray arrayWithObjects: navigItem,nil];
....
- (void) cancelButtonPressed { }
- (void) doneButtonPressed { }
Run Code Online (Sandbox Code Playgroud)
但没有出现......没有顶栏.
我使用SDWebImage下载图像.如果成功下载图像,我想进一步操作.
cell.appIcon.sd_setImage(with: url, placeholderImage: UIImage.init(named: "App-Default"), completed: {(image: UIImage!, error: NSError!, cacheType: SDImageCacheType, imageURL: URL!) -> Void in
// Perform operation.
})
Run Code Online (Sandbox Code Playgroud)
但我收到错误:
无法将类型'(UIImage!,NSError!,SDImageCacheType,URL!) - > Void'的值转换为预期的参数类型'SDExternalCompletionBlock?'
我用过UIScrollview我的iPhone app.我已将默认大小设置为UIScrollview 320 * 548.我想UIScrollview通过编程动态增加高度,但我还没有成功.我用过以下代码
CGRect scrollFrame;
scrollFrame.origin = _tblScroolView.frame.origin;
scrollFrame.size = CGSizeMake(320, 700);
_tblScroolView.frame = scrollFrame;
Run Code Online (Sandbox Code Playgroud)
请帮我
谢谢!
open static func PBKDF2(_ password: String, salt: Data,
prf: PRFAlg, rounds: UInt32) throws -> Data {
var result = Data(count:prf.cc.digestLength)
let passwData = password.data(using: String.Encoding.utf8)!
let status = result.withUnsafeMutableBytes {
(passwDataBytes: UnsafeMutablePointer<UInt8>) -> CCCryptorStatus in
return CCKeyDerivationPBKDF!(PBKDFAlgorithm.pbkdf2.rawValue,
(passwData as NSData).bytes, passwData.count,
(salt as NSData).bytes, salt.count,
prf.rawValue, rounds,
passwDataBytes, result.count)
}
guard status == noErr else { throw CCError(status) }
return result
}
Run Code Online (Sandbox Code Playgroud)
result.withUnsafeMutableBytes在Xcode 10中给出错误,在Xcode 9中它是一个警告.
这是代码正常工作,但当我将滚动我的集合视图,然后另一个单元格也被选中,例如18个图像可用,并在运行时首先显示六个,当我将选择任何一个六个然后也选择另一个2单元格我在这里混淆为什么已选择另外两个单元格请给我解决方案

在这里,我在主要展示故事板上采取了6个单元格
UICollectionViewFlowLayout *flowLayout = (UICollectionViewFlowLayout*)self.collectionView.collectionViewLayout;
flowLayout.minimumLineSpacing = 15;
CGFloat availableWidthForCells = CGRectGetWidth(self.collectionView.frame) - flowLayout.sectionInset.left - flowLayout.sectionInset.right - flowLayout.minimumInteritemSpacing *2;
cellWidth = availableWidthForCells /6;
NSLog(@"cellWidth:%f",cellWidth);
flowLayout.itemSize = CGSizeMake(cellWidth, cellWidth);
Run Code Online (Sandbox Code Playgroud)
这是我的Didselect和didDeselect方法
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
UICollectionViewCell* cell = [collectionView cellForItemAtIndexPath:indexPath];
cell.layer.cornerRadius = cellWidth / 2.0;
cell.layer.backgroundColor = [UIColor blackColor].CGColor;
NSLog(@"INDEXPATH:-%ld",(long)indexPath.row);
}
-(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath{
UICollectionViewCell* cell = [collectionView cellForItemAtIndexPath:indexPath];
cell.layer.cornerRadius = cellWidth / 2.0;
cell.layer.backgroundColor = [UIColor whiteColor].CGColor;
}
Run Code Online (Sandbox Code Playgroud) 我正在添加大约1000 MKPolygon秒MKMapView.将叠加层添加到MKMapView其上后,它可以正常工作.但是,如果我快速放大并缩小(偶尔放开缩放以便mapView进程是新的visibleMapRect),我发现应用程序(有时)会崩溃并出现以下异常堆栈跟踪:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSSetM removeObject:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107db6b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010781b141 objc_exception_throw + 48
2 CoreFoundation 0x0000000107d1712a -[__NSSetM removeObject:] + 538
3 VectorKit 0x000000010bae84fa -[VKRasterOverlayTileSource removeOverlay:] + 89
4 VectorKit 0x000000010b79a648 -[VKMapModel removeRasterOverlay:] + 68
5 MapKit 0x0000000106f93bf1 -[MKOverlayContainerView _removeDrawable:forOverlay:level:] + 502
6 MapKit 0x0000000106f92633 -[MKOverlayContainerView addAndRemoveOverlayViews] + 785 …Run Code Online (Sandbox Code Playgroud) 在iOS 6中,我有一个UITableView,启用了pull to refresh.在顶部单元格中,我有几个海关控件,用户可以通过拖动圆形滑块进行交互(参见此示例).见截图...

控件需要一个标签,并且需要拖动滑块指示器的拖动但是它们可能很难抓取,因为击中似乎经常在单元格背景上,导致表格拖动开始.
如果点击事件发生在那些控件上的任何地方,我想禁用表的默认滚动.我能想到的两个选择:
有关如何实现其中任何一项的任何建议?
谢谢!
我的要求是创建一个显示实时驾驶室跟踪的应用程序。像Ola,uber等著名的汽车应用程序一样。
请让我知道如何更新注解,即使是在街道转弯和倒车时。如何使用MKMapview模拟移动注释。我必须使用的任何图书馆。我搜索了但是找不到任何图书馆
ios ×8
objective-c ×3
asp.net ×1
iphone ×1
javascript ×1
jquery ×1
kendo-ui ×1
mapkit ×1
mkmapview ×1
orientation ×1
overlays ×1
scroll ×1
sdwebimage ×1
swift ×1
swift3 ×1
telerik ×1
touch ×1
uiscrollview ×1
uitableview ×1
xcode ×1