first I have my own custom view called FindFriendHeadPublish.h, which contains the xib file as follows: I set the autorun and the view is OC

and my view controller, which is named PreviewViewController.swift, also has xib and I add the FindFriendHeadPublish view to the view controller, but autostart in FindFriendHeadPublish does not work.
override func viewDidLoad() {
super.viewDidLoad()
self.title = "我的卡片预览"
var addpreviewView = NSBundle.mainBundle().loadNibNamed("FindFriendHeadPublish", owner: nil, options: nil)
var previewView = addpreviewView.last as! FindFriendHeadPublish
previewView.setTranslatesAutoresizingMaskIntoConstraints(false);
GetUserInfoInterface.getUserInfoWithFUid(UserInfoSaveUtil.getUserInfo().userid, withBlock: { (userInfo:GetUserInfoVo! , error:NSError! ) -> Void in
})
self.scrollView.contentSize = CGSizeMake(320, 640)
self.scrollView.addSubview(previewView)
}
I have some other problems, but I did not find a solution, someone can help, thanks
In addition, the custom view works well in another view manager, which writes to OC
