请问:iPhone中如何能修改待机背景或来电画面?

sharetop 2013-02-26 08:15:38


很想知道这个界面是如何实现的,另外,唱吧好象也有类似功能,在播放音乐时可以显示在待机界面。

多谢。
...全文
231 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
a78782295 2013-03-24
  • 打赏
  • 举报
回复
superfireware 2013-03-02
  • 打赏
  • 举报
回复
测试结果如何
都市劳工 2013-02-27
  • 打赏
  • 举报
回复
hslinux 2013-02-27
  • 打赏
  • 举报
回复
代码可行吗?
sharetop 2013-02-26
  • 打赏
  • 举报
回复
如果上面代码可行,这100分就散给大家了,回帖有分,,,,,
sharetop 2013-02-26
  • 打赏
  • 举报
回复
http://stackoverflow.com/questions/6600592/change-lock-screen-background-audio-controls-text iOS 5 now supports setting the track title as well as an album art image in both the lock screen and the remote playback controls (the controls you get when you double-click the home button and swipe right). Take a look at the MPNowPlayingInfoCenter class. Of course, to maximize compatibility, you'd want to test whether MPNowPlayingInfoCenter is available, by doing something like: if ([MPNowPlayingInfoCenter class]) { /* we're on iOS 5, so set up the now playing center */ UIImage *albumArtImage = [UIImage imageNamed:@"HitchHikersGuide"]; albumArt = [[MPMediaItemArtwork alloc] initWithImage:albumArtImage]; NSDictionary *currentlyPlayingTrackInfo = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"Life, the Universe and Everything", [NSNumber numberWithInt:42], albumArt, nil] forKeys:[NSArray arrayWithObjects:MPMediaItemPropertyTitle, MPMediaItemPropertyPlaybackDuration, MPMediaItemPropertyArtwork, nil]]; [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = currentlyPlayingTrackInfo; }
sharetop 2013-02-26
  • 打赏
  • 举报
回复


那个来电秀被我看出来了,就是把这张图弄成此人的头像即可,FT,乱改我的通讯录!

但是这个唱吧的播放界面暂时还不太清楚,,,,

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧