Cannot find protocol declaration for & quot; RefreshAudioL

Source: Internet
Author: User

[Html] Today, a very abnormal problem gets stuck: cannot find protocol declaration for "RefreshAudioListViewDelegate" <p> </p> <span style = "color: rgb (186, 45,162); font-family: Menlo; font-size: 11px; "> 1. in PlayerController. h </span> Custom a proxy <span style = "font-family: Menlo; font-size: 11px; "> RefreshAudioListViewDelegate </span> </p> <p style =" margin-top: 0px; margin-bottom: 0px; font-size: 11px; font-family: Menlo; color: rgb (2 09, 46, 27); "> </p> <pre name =" code "class =" html "> # import" <span style = "font-family: Menlo; font-size: 11px; "> PlayerListViewController. h </span> "@ protocol RefreshAudioListViewDelegate <NSObject>-(void) updateCurrentPlayedAudio :( NSUInteger) currentPlayedIndex; @ end www.2cto.com @ interface PlayerController: NSObject </pre> <p> </p> <p style = "margin-top: 0px; margin-bottom: 0px; font-size: 11px; font- Family: Menlo; color: rgb (209,46, 27) "> <br> </p> <p style =" margin-top: 0px; margin-bottom: 0px; font-size: 11px; font-family: Menlo; color: rgb (209,46, 27) "> <br> </p> <br> 2. in <span style = "font-family: Menlo; font-size: 11px"> PlayerListViewController. h </span> <pre> </pre> <pre name = "code" class = "html"> # import "PlayerController. h "@ class PlayerController; @ interface PlayerListViewController: UIViewControlle R <RefreshAudioListViewDelegate> {PlayerController * playerController;} </pre> <br> <p style = "margin-top: 0px; margin-bottom: 0px; font-size: 11px; font-family: Menlo; color: rgb (209,46, 27) "> the compiler prompts" cannot find protocol declaration for "RefreshAudioListViewDelegate" </p> <p style = "margin-top: 0px; margin-bottom: 0px; font-size: 11px; font-family: Menlo; color: rgb (209,46, 27) "> Cause Analysis: </p> <p style =" margin-t Op: 0px; margin-bottom: 0px; font-size: 11px; color: rgb (209,46, 27) "> <span style =" font-family: menlo "> compilation sequence in the compiler: </span> </p> <pre name =" code "class =" html "style =" font-family: Menlo; "> <span style =" font-family: Menlo; font-size: 11px; "> 1. playerListViewController. # import "PlayerController. h ", the compiler will run to PlayerController. h. </Span> </pre> <pre name = "code" class = "html" style = "font-family: Menlo;"> <span style = "font-family: menlo; font-size: 11px; "> 2. in PlayerController. # import "PlayerListViewController. h ", the compiler will load content in PlayerListViewController again. </Span> </pre> <pre name = "code" class = "html"> <span style = "font-size: 11px; "> <span style =" font-family: Menlo; "> 3. when you see </span> <pre name = "code" class = "html" style = "font-family: Menlo;"> @ interface PlayerListViewController: when UIViewController <RefreshAudioListViewDelegate> is specified, the compiler reports an error because the statements defining the proxy in PlayerController are not loaded: </pre> <pre name = "code" class = "html"> <pre name = "code" class = "html" style = "font-family: Menlo; "> cannot find protocol declaration for" RefreshAudioListViewDelegate "</pre> <pre name =" code "class =" html "style =" font-family: Menlo; "> </pre> <pre name =" code "class =" html "> <span style =" font-family: Menlo; "> solution: </span> </pre> <pre name = "code" class = "html"> <span style = "font-family: Menlo;"> Delete PlayerController. </span> <pre name = "code" class = "html"> # import "<span style =" font-family: Menlo; font-size: 11px; "> PlayerListViewController. h </span> "</pre> <p> </p> <pre> </pre> <p> </p> </pre>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.