Все вопросы: [uicontrol]

7 вопросов

похожие теги:
0
голосов
1ответов
957 просмотров

UIControlEventTouch...?

I have a grid of images/buttons, and I want the user to be able to drag their finger over the images/buttons such that when their finger touches each image/button an event is called. How do I do this??? The best example I can think of now is the Contacts app, how you drag your finger down the l...

0
голосов
1ответов
1565 просмотров

Can't figure out where to start subclassing a UIControl!

I want to create my own control that will consist of several UILabels and a couple of UITextFields. The problem is I'm not sure where to start! Do I directly subclass UIControl, then create my subviews and add them to the main view in init:? Or do I use layoutSubviews? And will I need to override...

0
голосов
2ответов
2733 просмотров

How can a UIControl pass all touch events on to the next object in the responder chain?

That's tricky. I have a small button over a very big one. When the small button on that big button is pressed, the small button does something. But the big one does nothing. Of course. But now I want that the big button also does something, no matter if the small button was tapped or not. So the ...

1
голосов
1ответов
717 просмотров

How can a covered UIControl or UIView know about a touch event that ended above it?

I have a UIControl (or UIView, doesn't matter which) and this is covered by another UIControl. The other UIControl reacts nicely on touch events. However, the underlying UIControl also needs to know about the touch and if it was actually "on it" or not from the user's perspective. The covering UI...

1
голосов
1ответов
348 просмотров

How to make the "hot area" of a UIControl bigger?

Or: How to expand the sensitive area for a UIControl without just making the view bigger? I have a pretty small button image (a little arrow), which is just 10 x 10 pixels. Too small for touching. I want the "hot area" to be 50 x 50 around that. For learning, I want to know how to do it manually...

69
голосов
7ответов
41159 просмотров

How to correctly subclass UIControl?

I don't want UIButton or anything like that. I want to subclass UIControl directly and make my own, very special control. But for some reason, none of any methods I override get ever called. The target-action stuff works, and the targets receive appropriate action messages. However, inside my UI...

0
голосов
1ответов
262 просмотров

Создание подкласса UIControls для iPhone

Какими методами можно расширить свойства UIControl?