Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. MonoTouch: Where is Frame.Origin?
  2. imageView.frame.origin.x = CGRectGetMidX(view.bounds) -
  3.             CGRectGetMidX(imageView.bounds)
  4.        
  5. views.Bounds.GetMidX ()
  6.        
  7. imageView.frame.origin.x = CGRectGetMidX(view.bounds) - CGRectGetMidX(imageView.bounds);
  8.        
  9. imageView.Frame.X = view.Bounds.GetMidX () - imageView.Bounds.GetMidX ();