English 中文(简体)
安排从统一工会或统一工会的活动
原标题:Subscribing to touch events from UILabel or UIImage

我有一位控制员,管理复杂的观点,除其他目标外,还包括一些标签和图像。 我怎么能够把事件引向我的控制者的一些标签和图像? 问题在于,国际律师联合会没有自己的活动(例如UIButton)。

有两个工作领域:

  • Put some invisible buttons about the labels and images I want to handle
  • Derive my own label and button components and override TouchesBegan

是否有更好的办法? 如果是这样的话:我建立了使用接口的建筑商。

感谢

Adrian

最佳回答

我解决这一问题,把我的县ty为平地看着一个标签。 它不是完美的,而是我找到的最佳工作。

问题回答

暂无回答




相关问题
Write to a File in Monotouch

How would I create and write to a file in a Monotouch iPhone app? The file should persist between application launches, so I guess it has to be placed somewhere in the App bundle ( documents or ...

MonoTouch debugger never connects to app

I have an issue where the MonoDevelop debugger refuses to connect to the simulator. MonoDevelop pops a box saying "Waiting for debugger to connect on 127.0.0.1:10000..." but never connects. I have ...

montouch detect when sound finished playing

In objective C is a method called AudioServicesAddSystemSoundCompletion which allows to add a handler for "audio done notification". So I add the handler call AudioServicesPlaySystemSound and when the ...

Web Services Build Error in Monotouch

My project and web services work fine in the simulator but crash when uploading to an iPhone. It had been working fine before I updated Monotouch from 1.1. Can I revert back to earlier versions of ...

Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

Is MonoDevelop s editor slow for you?

I m using the evaluation version of MonoTouch and MonoDevelop to check out writing iPhone app in C#. However, MonoDevelop s editor is very slow for me. I mean really really slow. I have to type and ...

C# Class Definition

In XCode and objective c, if I want to use a UIGlassButton in interface builder, I put the following line in my header file: @class UIGlassButton; I am now using monotouch c#. Is there a similar ...

热门标签