45229

How do i create an accordion control similar to one created using AJAX in IOS?

Question:

I want create an accordion control similar to one created using AJAX <a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx" rel="nofollow">http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx</a> where I can place icons instead of text for iPhone.

Answer1:

Basically you want to use an expandable UITableView - when you tap a cell you reveal a number of cells beneath it (the contents of your accordion). You don't <em>necessarily</em> need to use a table view, but typically it's a good starting point.

There are a couple of controllers that have been put out in the open - <a href="http://cocoacontrols.com/platforms/ios/controls/uiexpandabletableview" rel="nofollow">this one, for example</a> - but it's not too difficult to write yourself once you know a bit about table views and removing/adding cells.

Recommend

  • Creating a directory on FTP server
  • Rails App on Heroku Cannot Write to PostgreSQL Database, Only Read
  • Caret Binary Classification with RMSE
  • Sql Server 2008 NVARCHAR length -1
  • Restricting User Input to Integers on a Userform Textbox
  • Fast moving bodies miss the collision sometimes in Box2d, AndEngine
  • Cannot create a deployment that requests more than 2Gi memory
  • Is there a consistent global FormatSettings variable availabe?
  • Copy method from another AppDomain's assembly and execute it from CurrentDomain
  • Restarting nginx: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  • Popup a new window in an ajax success callback when popup blocker is on
  • How to eliminate delay in presentation of MFMessageComposeViewController?
  • Set a project default for VB.NET projects so that the default Modifiers property for controls is Pri
  • Bigquery - select timestamp as human readable datetime
  • Does Python have something like Perl 5.10's “state” variables?
  • Java Vertical Layout?
  • groovy: Have a field name, need to set value and don't want to use switch
  • Comparing a char with multiple characters
  • codeblocks and C undefined reference to getline
  • How to set proxy settings for my application in .NET
  • PHP - How to access and retrieve important data from a pop3 email account?
  • How to get the device Model in objective c?
  • sending emails in python weird behaviour
  • Copy file names from one folder to another while keeping the original extensions
  • matplotlib and transparency figure
  • Given a dom element, how could I flatten it in jquery and/or JavaScript?
  • Change JList item background color on hover
  • How to map a native query to POJO class using jpa and hibernate
  • How do I set context and followup event in one intent?
  • Parallelization via JDBC - Pyspark - How does parallelization work using JDBC?
  • Hibernate Idempotent Update
  • analytics.js event not working properly
  • Azure NodeJS Error: ENOENT, open 'D:\\home\\site\\wwwroot\\bin\\views\\'
  • Arraylist of strings into one comma separated string
  • What does “T extends Junk” mean in a generic class in Java?
  • Wireshark Display Filter for Unique Source/Destination IP and Protocol
  • How do I use libcurl to printf a remote FTP directory listing?
  • How to clear a browser cache in Protractor
  • What is the best way to cache and reuse immutable singleton objects in Java?
  • ReferenceError: TextEncoder is not defined