def tableView_accessoryButtonTappedForRowWithIndexPath_(_self, _cmd, _tv, _ip):
view = ObjCInstance(_self)
row = ObjCInstance(_ip).row()
cell = ObjCInstance(tableView_cellForRowAtIndexPath_(_self, None, _tv, _ip))
accessory_view = ObjCInstance(cell.valueForKey_('_accessoryView'))
song = songs[row]
song_info_view = ui.load_view('SongInfo')
ObjCInstance(song_info_view['artworkImageView']).setImage_(song.artwork)
song_info_view['song_title_label'].text = str(song.title)
song_info_view['song_album_label'].text = str(song.albumTitle)
song_info_view['song_playcount_label'].text = str(song.playCount)
song_info_view.present('popover')
评论列表
文章目录