title: Set both accessoryType and accessoryView in UITableViewCell in iOS app - feasible?
body: <p>I want to set both <code>accessoryType</code> and <code>accessortyView</code> in <code>UITableViewCell</code> in my iOS app, in order to let my users see data in each cell as well as an indicator of moving to the detail view, by using both my own custom string embedded in <code>UILabel</code> as <code>accessoryView</code> and <code>UITableViewCellAccessoryDisclosureIndicator</code> as <code>accessoryType</code>. However, Apple's Objective-C documentation implies that I cannot use both at the same time in the <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html" rel="nofollow noreferrer">following line</a>, which I borrowed from <a href="https://stackoverflow.com/questions/3714676/uitableviewcell-accessorytype-set-but-accessoryview-is-nil-how-do-i-set-the-ac">this post</a>:</p>
  <blockquote>
  <p>Discussion</p>
  <p>If the value of this property is not nil, the UITableViewCell class uses the given view for the accessory view in the table view’s normal (default) state; it ignores the value of the accessoryType property. The provided accessory view can be a framework-provided control or label or a custom view. The accessory view appears in the right side of the cell.</p>
  <p>The accessory view cross-fades between normal and editing states if it set for both states; use the editingAccessoryView property to set the accessory view for the cell during editing mode. If this property is not set for both states, the cell is animated to slide in or out, as necessary.</p>
  </blockquote>
  <p>So is there any way to use both <code>accessoryType</code> and <code>accessortyView</code> in my <code>UITableViewCell</code>? I'd like to achieve something like the following and not make use of <code>detailTextLabel</code> to put my data on.</p>
  <pre><code>
  [textLabel    dataLabel    (->)] # this is header just to illustrate my point
  
  [Michael    San Francisco  (->)]
  [Kevin      New York       (->)]
  </code></pre>
  <p>And I just realized iOS default Phone app uses <code>accessoryView</code> to show date as well as <code>accessoryType</code> - which is exactly what I want to do.</p>