小编Joh*_*ohn的帖子

未找到团队的iTunes Connect帐户

我将把我的第一个应用程序提交到App Store.

在XCode产品 - >存档并验证项目我收到错误:

没有找到团队的iTunes Connect访问帐户...

App Store分发需要iTunes连接访问权限.如何解决我的问题?

在此输入图像描述

itunesconnect app-store ios

156
推荐指数
10
解决办法
4万
查看次数

iOS视图可见性消失了

我是iOS开发的新手.我想从父视图中切换(隐藏/可见)子视图.在android中有一种隐藏可见性的方法.

在android中

subView.setVisibility(View.GONE);
Run Code Online (Sandbox Code Playgroud)

在iOS中

subView.removeFromSuperview()
Run Code Online (Sandbox Code Playgroud)

当我使用上面的函数它删除subViewConstraints并弄乱我的滚动视图约束.

topsubView.bottomAnchor.constraint(equalTo: bottomSubView.topAnchor, constant: 8).isActive = true
Run Code Online (Sandbox Code Playgroud)

当我使用上面的代码它工作正常并隐藏subView.but当我想使subView可见时,它不显示subView.

topsubView.bottomAnchor.constraint(equalTo: bottomSubView.topAnchor, constant: 8).isActive = false
self.view.layoutIfNeeded()
Run Code Online (Sandbox Code Playgroud)

希望你能理解我的问题.谢谢你提前.

view ios swift swift3 swift4

20
推荐指数
4
解决办法
1万
查看次数

UITableView禁用滑动以删除特定单元格swift

我正在尝试禁用滑动以删除tableview中某些特定单元格的操作.但我无法在迅捷中找到一个好的解决方案.当覆盖"tableView.isEditing = true"方法时,我不希望单元格上的左侧减号.这是我的代码.下面的代码没有禁止滑动到statusId为"12"的单元格.希望你能理解我的问题.

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCell(withIdentifier: "identifier", for: indexPath) as! TableViewDateCell
    cell.titleStatus.text = mainList[indexPath.row].statusName
    //tableView.isEditing = true
    //disable swipe to delete for cell with statusId == "12"
    if mainList[indexPath.row].statusId == "12" {
         //tableView.isEditing = false
        cell.selectionStyle = UITableViewCellSelectionStyle.gray
        cell.isUserInteractionEnabled = false

    }
 }


func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {

}
Run Code Online (Sandbox Code Playgroud)

uitableview ios swift

7
推荐指数
1
解决办法
4613
查看次数

如果用户第一次拒绝 swift 如何再次请求许可(RunTime)

我拒绝位置权限第一次应用程序启动,当用户单击位置按钮时,我想显示请求权限的警报对话框。

这是我的 sudo 代码

单击位置按钮

if dont have location permission {
   ask for permission
} else {
  get current location
}
Run Code Online (Sandbox Code Playgroud)

这是我的代码。请检查我代码中的注释。希望您理解我的问题。提前致谢。

@IBAction func getCurrentLocationButtonClick(_ sender: UIButton) {
///////////How to implement that sudo code/////////////////////////////
///////////Why This method is not calling for second time /////////////
//        locationManager.desiredAccuracy = kCLLocationAccuracyBest
//        locationManager.requestWhenInUseAuthorization()
//        locationManager.requestLocation()
/////////////////////////////////////////////////////
          locationManager.startUpdatingLocation()   
   }


override func viewWillAppear(_ animated: Bool) {
    locationManager.delegate = self
    locationManager.desiredAccuracy = kCLLocationAccuracyBest
    locationManager.requestWhenInUseAuthorization()
    locationManager.requestLocation()
}

extension NotificationCenterViewController : CLLocationManagerDelegate {

    func locationManager(_ manager: CLLocationManager, didChangeAuthorization …
Run Code Online (Sandbox Code Playgroud)

user-permissions ios swift

5
推荐指数
1
解决办法
4012
查看次数

Spring框架StoryBoard渲染错误

我有一个项目工作项目.现在我再次安装pod

pod'Spring' 

,:git =>' https://github.com/MengTo/Spring.git ',: branch =>'swift3'



不,我收到此错误.


"错误:IB Designables:无法呈现和更新AvailabilityViewController的自动布局状态,找不到合适的图像.找到了:Spring.framework:'Spring.framework'缺少必需的代码签名"



现在我的应用程序正在运行.但我无法在故事板中找到视图.


我试图从Xcode中删除所有派生数据,我关闭自动管理签名.但没有任何作用.希望你能理解我的问题.提前致谢.

ios xcode-storyboard cocoapods swift

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

在 MapKit Swift 中禁用 Mylocation 标记点击

我在Apple地图中添加MKAnnotationView,并在annotationView中创建一个点击事件。但是Mylocation标记正在与annotationView点击交互。如何克服这个问题。希望您理解我的问题。提前致谢。

 func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {

    var annotationView = MKAnnotationView()

    guard let annotation = annotation as? ClientLocation
        else{
            return nil
    }
    if let dequedView = mapView.dequeueReusableAnnotationView(withIdentifier: annotation.identifier){
        annotationView = dequedView
    }
    else{
        annotationView = MKAnnotationView(annotation: annotation, reuseIdentifier: annotation.identifier)
    }
    ////////////////////////
    ///////////////////
    annotationView.rightCalloutAccessoryView = button
    annotationView.canShowCallout = true
    return annotationView
}

func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) {
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

mapkit mkannotation ios swift swift3

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