uicontrol

MATLAB uicontrol callback return matrix

青春壹個敷衍的年華 提交于 2020-01-16 18:16:28
问题 Original post: MATLAB scrolling plot I got a second part in my problem now. As before, I have a 19*1000*134 matrix that I'm plotting thanks to the nicely answer from Aero Engy on the last post. I would like to create in my workspace a vector called clean that will have a 134 length. By default, the value for clean(i) (with i between 1 and 134) will be 1 -- but, if I press a button on the UI interface, the value must get to 0. My code bellow, just don't give me any ouput. The button seems to

matlab uicontrols

回眸只為那壹抹淺笑 提交于 2020-01-15 09:55:27
问题 I made a gui and I have a code (thanks Amro) that shows me a gif file. I want to show this gif file in 'hAxes' till the gui is closed (show it with the other uicontrol). I have a folder that has 200 pictures (image1.jpg, image2.jpg... image200.jpg) and I perform some things about these images (in loading1 uicontrol). I try something like: hFigure = figure('units','pixels','position',[300 300 424 470],'menubar','none',... 'name','start processing','numbertitle','off','resize','off'); hAxes =

UIButton not calling action in iOS 5 but works in iOS 6

孤者浪人 提交于 2020-01-12 02:43:13
问题 I have a UIButton that is loaded from a xib file as an IBOutlet property of a view controller. I attach a selector to the button in the viewDidLoad of my view controller: [_myButton addTarget:self action:@selector(mySelector) forControlEvents:UIControlEventTouchUpInside]; In iOS 6 everything works, but when i run on the simulator in iOS 5.0 the selector doesn't get called. The button does highlight when it is touched. Another thing to note is that the button is in a UIView that has a

UIButton not calling action in iOS 5 but works in iOS 6

China☆狼群 提交于 2020-01-12 02:43:05
问题 I have a UIButton that is loaded from a xib file as an IBOutlet property of a view controller. I attach a selector to the button in the viewDidLoad of my view controller: [_myButton addTarget:self action:@selector(mySelector) forControlEvents:UIControlEventTouchUpInside]; In iOS 6 everything works, but when i run on the simulator in iOS 5.0 the selector doesn't get called. The button does highlight when it is touched. Another thing to note is that the button is in a UIView that has a

How to animate transition from one state to another for UIControl/UIButton? [duplicate]

。_饼干妹妹 提交于 2020-01-11 04:15:07
问题 This question already has an answer here : Fading out an UIButton when touched (1 answer) Closed 6 years ago . I have a UIButton that changes image on highlight. When transitioning from UIControlStateHighlight to UIControlStateNormal, I want the highlighted image to slowly fade back into the normal image. Is there an easy way to do this? 回答1: I ended up subclassing UIButton. Here's the implementation file code. I took some app-specific stuff out, so I haven't tested this exact code, but it