所以我的代码工作正常,但我的记录器充满了这条消息。有没有办法摆脱它或抑制它?
PostAnnotation.swift
relevant_users.first.user.reload
添加注释
class PostAnnotation: MKPointAnnotation {
//MARK: properties
let post: Post
//MARK: initialization
init(post: Post) {
self.post = post
super.init()
self.coordinate = CLLocationCoordinate2D(latitude: post.latitude, longitude: post.longitude)
self.title = post.title
self.subtitle = post.timeString()
}
}
func mapView
let annotation = PostAnnotation(post: post)
self.map.addAnnotation(annotation)
删除此功能会删除消息