Hook into the TouchesUp event on the UIImageView (it's
Touches<something> - not sure if it's Up or Ended), that should get
you the touch event.
imageView.TouchesUp += delegate() { .... };
For the buttons, add them in when you create the form, but hide them
(Visible = false? or set Alpha = 0f;)
When you get touched, you can then use an animation to fade them in -
basically set Visible = true or Alpha = 1.0f; (which ever one you did
above) inside a UIView.BeginAnimation(""); / UIView.CommitAnimation()
cycle like this:
UIView.BeginAnimations("foo");
UIView.SetAnimationDuration(0.25f);
button1.Alpha = 1f;
//OPTIONAL - this gets called when the animation is finished
UIView.SetAnimationDidStopSelector(new Selector("removetaphere"));
UIView.CommitAnimations();
[Export("removetaphere")]
public void RemoveTapHere()
{
//remove the button from the parentView or do
something else when the animation ends
}
(Just not sure - no Mac here to try it - if Alpha = 0f will stop the
buttons from working - and you want them to not work if they are not
visible, right? Maybe Alpha AND somehow disable them? Look for
properties on the button like Enabled or similar)
On Wed, Jun 6, 2012 at 7:23 AM, pritish
<[email protected]> wrote:
> Hi,
>
> I want to display the Previous n Next UIButton on UIImageView when finger
> will touch to UIImage or UIImageView for iPad app(just similar like Facebook
> but its not an web app).
> I didnt know how to do this please help me!!!!!
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/How-to-display-the-Previous-n-Next-UIButton-on-UIImageView-when-finger-will-touch-to-UIImage-or-UIImw-tp4655212.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch