Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Sorting the Address Book database problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mark FX" data-source="post: 1380428" data-attributes="member: 211556"><p>Your method declarations should be like this.</p><p></p><p>[CODE]</p><p>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation</p><p>{</p><p> // Your code here</p><p>}</p><p>[/CODE]</p><p></p><p>And this one should be.</p><p></p><p>[CODE]</p><p>- (IBAction)adbook:(id)sender</p><p>{</p><p> // Your code here</p><p>}</p><p>[/CODE]</p><p></p><p>In the code you posted the colons and first brace is missing.</p><p></p><p>Also when using protocols, make sure you implement all of the required methods, as</p><p>stated in the protocols documentation, and double check your spellings of any methods.</p><p></p><p>Regards Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1380428, member: 211556"] Your method declarations should be like this. [CODE] - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Your code here } [/CODE] And this one should be. [CODE] - (IBAction)adbook:(id)sender { // Your code here } [/CODE] In the code you posted the colons and first brace is missing. Also when using protocols, make sure you implement all of the required methods, as stated in the protocols documentation, and double check your spellings of any methods. Regards Mark [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Sorting the Address Book database problem
Top