Button not working in a table header
I have a custom view that implements table header. I have buttons in that view. The buttons used to work fine in SDK prior to 5. I moved directly to SDK 7, and the buttons stopped working. The action is not called anymore.
Any help will be appreciated.
Thanks
Well, you have me stumped. I just replicated your code and it works fine for me:
- (void)doStuff:(id)sender
NSLog(@"Logo Touched!");
- (void)viewDidLoad {
// loadingView is a UIView that becomes the tableHeaderView
self.tableView.tableHeaderView = loadingView;
[loadingActivity startAnimating];
// setup a sample button (declared in header)
logoButton = [[UIButton alloc] initWithFrame:CGRectZero];
[logoButton setImage:[UIImage imageNamed:@"logo_webclip.png"] forState:UIControlStateNormal];
[logoButton addTarget:self action:@selector(doStuff:) forControlEvents:UIControlEventTouchUpInside];
logoButton.tag = 100;
[loadingView addSubview:logoButton];
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
logoButton.frame = CGRectMake(50., 50., 64., 64.);
That calls my target everytime it's touched... are you remembering to call the superclass for each of your overrided methods in your custom UIView? The only difference between my quick test and yours is that I didn't subclass UIView -- I just used the UIView class directly.
Similar Messages
-
Next button not working in advanced table
HI ,
I have created an advanced table programatically.everything is working fine but the navigation buttons for next and previous are not working properly.If I click on next 20 records I am getting the first 20 records.Do i need to set anything for this.Please hepl me.Hi,
This may be the problem in your InternetExplorer.
Mini -
Navigation button not working in JSP
JDeveloper10g JSP:
"NestSet", "PreviousSet" button not working after a search is done on a read-only table. Is this a know bug?
Please help!!!Vishal,
I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
Regards,
Usman -
Af:clientlistener not working in af:column header
Hi I am using jdeveloper 11.1.1.5.0 and my browser is IE 8.
i have added client listener property in af:column to show the tooltip message on 'mouseover' action. This property is working fine If i am using inside the af:inputDate components. but, same clientlistenr is not working inside the table in column.
the Working Code is : -
<af:resource type="javascript" >
function showPopupFromAction(actionEvent)
actionEvent.cancel();
var eventSource = actionEvent.getSource();
var popup = eventSource.findComponent("popup");
popup.show({align:AdfRichPopup.ALIGN_AFTER_START, alignId:eventSource.getClientId()});
</af:resource>
in client listener method is called in below componemnts:-
<af:inputDate value="#{bindings.dateField.inputValue}"
autoSubmit="true" columns="8"
inlineStyle="padding-left:10px" partialTriggers="afDtId"
required="#{bindings.dateField.hints.mandatory}"
shortDesc="Searches the dateField" id="afDtId"
binding="#{pageFlowScope.commonBean.afDtBind}"
valueChangeListener="#{pageFlowScope.commonBean.valueChangeOfdateField}">
<f:validator binding="#{bindings.dateField.validator}"/>
<af:convertDateTime pattern="#{bindings.dateField.format}"/>
<af:clientListener type="mouseOver" method="showPopupFromAction"/>
</af:inputDate>
But, Inside the column not working,
<af:column sortProperty="dateField" sortable="true"
headerText="dateField" width="85px"
id="c2">
<af:inputDate value="#{row.bindings.dateField.inputValue == null ? 'N/A' : row.bindings.dateField.inputValue}" readOnly="true"
label="#{bindings.commonListTable.hints.dateField.label}"
required="#{bindings.commonListTable.hints.dateField.mandatory}"
shortDesc="#{bindings.commonListTable.hints.dateField.tooltip}"
id="id2">
<f:validator binding="#{row.bindings.dateField.validator}"/>
<af:convertDateTime pattern="#{bindings.commonListTable.hints.dateField.format}"/>
<af:clientListener type="mouseOver" method="showPopupFromAction"/>
</af:inputDate>
</af:column>
And Table property is :
<af:table value="#{bindings.commonListTable.collectionModel}" inlineStyle="width:1186px;border:none;background:rgb(243,243,243);margin-left:2px;"
var="row" styleClass="adSeaAccT1"
emptyText="#{bindings.commonListTable.viewable ? 'No data to display.' : 'Access Denied.'}"
rows="#{bindings.commonListTable.rangeSize}" fetchSize="#{bindings.commonListTable.rangeSize}"
autoHeightRows="10"
rowBandingInterval="0"
selectedRowKeys="#{bindings.commonListTable.collectionModel.selectedRow}"
selectionListener="#{bindings.commonListTable.collectionModel.makeCurrent}"
rowSelection="single" id="srcTbId" varStatus="tblStats">
Edited by: user8739990 on Jan 31, 2013 8:37 PMFor defining a tooltip message on af:column, you can use the below code:
In the header facet of af:column add an output text with value same as column header Text. Provide the tooltip message in the shortDesc property.
<af:column sortProperty="EmployeeId" sortable="true"
headerText="#{bindings.Employees.hints.EmployeeId.label}"
id="c4" shortDesc="Employees">
<af:outputText id="ot5" text="#{row.EmployeeId}">
</af:outputText >
<f:facet name="header">
<af:outputText value="EmployeeId" id="ot12" shortDesc="Employee"/>
</f:facet>
</af:column>Hope it helps. -
iPopd touch 4th generation sleep/power button not working.
Any ideas? how long is warranty?The standard warranty is one-year. Yu can purchase, before the one-year is up and additional year. Yu can check your coverage here:
Apple - Support - Check Your Service and Support Coverage
Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"? -
Logitech mouse buttons not working in photoshop cc 2014
logitech mouse buttons not working in photoshop cc 2014 winds 8.1. Is this a common problem?
I have updated the latest drivers and have a few buttons programmed with keyboard shortcuts that used to work in previous versions of Photoshop but don't work now.
Scrolling with mouse in bridge stopped working in cc butI see it is now working.
any ideas?Many Photoshop extensions are not compatible with Photoshop CC 2014 for Adobe removed support for Flash Panels in CC 2014. Many extensions panels are flash based. Check with the developer to see if their blendmein extension works with CC 2014.
Adobe does not maintain Photoshop so it backward compatible with prior versions of Photoshop. This brakes things like action scripts plugins extensions etc. Keep old version of Photoshop installed.... -
IPhone 4 middle button not working
Having problems with the iPhone 4 middle button not working anyone else with the same problem ?
Thanksi have the same problem. since you're software is already iOS 5.1 go to settings>general> accessibility>the settings after triple click home, i forgot what is it called but that would help.
-
Iphone 4 Home button not working after upgrade to OS 4.3.5
Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!
It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt. -
iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?
Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
Regards. -
I bought an iPhone 4 less than a year ago, then one day the home button randomly stopped working, I bought the warranty so I decided to call in and see what was wrong with it. The girl said that restoring the phone would correct the problem which it did. But it is only a temporary fix, it happens more often now. So I was meaning to call in soon, but the other day my phone fell out of my pocket IN CASE from a foot height and cracked the screen. I nearly threw up. All the years I have had a phone I have never cracked or broken one, strongest screen my ***. Anyway, if I contact them again now will they fix the home button problem? or will they say that the cracked screen is obviously the cause of the home button not working? which it is not!! I don't care about the screen being cracked its not on the actual screen just on the side so its irrelevant to me. Plus I heard it is outrageosly pricey to replace.
Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
Regards. -
Iphone 4 Home button not working after upgrade to OS 4.3.1
I've just upgrade my iphone 4 to OS 4.3.1 and I'm having issues with home button not working. Need to hit it several times before I can close an app or wake the iphone. Any one having this issue?
It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt. -
Iphone 4 volume buttons not working
iphone 4 volume and mute buttons not working, checked all settings they are all fine and when headphones in it works??? When I take out headphones the volum buttons do not work, when phone rings or text receives only vibrates???? HELP!!!!
This could be due to some debris or dirt inside the headphones jack that makes the iPhone think that the headphones are connected even when they are not.
Try to see if you can clean the jack being very careful, with canned air as sold in electronics store. Some people have been successful by introducing and withdrawing the headphones jack several times in a row to displace whatever is in there if it is lodged in.
Avoid introducing anything else like a pointed object. You could damage the jack.
If all of this does not work, I would try first resetting the phone by holding the home button and the power button together for about 15 seconds or until the whilte apple appears, then waiting until the phone resets. If the problem continues after this, take it to an Apple Store to see what they believe should be done. -
I am coding a video player in Netbeans 6.8. just find two problems:
1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
I appreciate any help. thanks.
Main.fx:
package gui;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.Color.*;
* @author Jethro
var face=Face{};
function run(){
Stage{
title: "player"
resizable:false
scene: Scene{
width:800
height:600
fill:DARKBLUE
content: [face]
}Face.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaError;
import javafx.scene.input.MouseEvent;
import javafx.scene.media.MediaView;
import javafx.scene.control.ProgressBar;
* @author Jethro
public class Face extends CustomNode {
public var lbf=LBF{};
public var enable=true;
public var mark="play";
public var sourceOfMedia:String;
public def player=MediaPlayer {
repeatCount:MediaPlayer.REPEAT_FOREVER
onError:function(e:MediaError){
var er=e.message;
media : bind Media {
source: sourceOfMedia
public def view=MediaView {
mediaPlayer:bind player
preserveRatio: true
public def bar=ProgressBar {
height:10
width:bind scene.width
progress: bind
if(player.media !=null){
player.currentTime.toMillis()
/player.media.duration.toMillis();
}else{
0.0
public var play=Button {
onMousePressed:function(e:MouseEvent){
if(enable and player.media != null){
mark="pause"; println("playing...");
sourceOfMedia=lbf.uri;
player.play();
enable=false;
}else{
mark="play";
player.pause();println("paused...");
enable=true;
text: bind mark
public override function create(): Node {
return Group {
content: [
VBox{
content: [
lbf,
bar,
play,
view,
}LBF.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.control.TextBox;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.scene.Node;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.control.Button;
import javax.swing.JFileChooser;
* @author Jethro
public class LBF extends CustomNode{
public var uri:String;
public var whereis=Text {
fill:Color.BLUE
font : Font {
size: 20
x: 10, y: 30
content: "location: "
public var location=TextBox{
text:"the song's location"
columns:40
selectOnFocus:true
public var browser=Button {
text: "Browser"
action: function() {
var jfc=new JFileChooser();
jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
var val = jfc.showOpenDialog(null);
if(val == JFileChooser.APPROVE_OPTION) {
location.text = jfc.getSelectedFile().getAbsolutePath();
uri=jfc.getSelectedFile().toURI().toString();
println(location.text);
public var face=Group {
content: [
Rectangle {
x: 0, y: 0
width: 800, height: 50
fill: Color.SILVER
HBox{
width:800
height:50
hpos:HPos.CENTER
vpos:VPos.CENTER
spacing:5
content: [whereis,location,browser]
public override function create():Node{
return face;
}thanks for your reply but I need more specific operation.
maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM -
Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???
Have you tried the standard fixes:
- Reset:
Reset iPod touch: Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears.
- Restore the iPod from backup via iTunes
- Restore the iPod to factory defaults/new iPod.
If still problem you likely have a hardware problem and an appointment at the Genus Bar of an Apple store is in order. -
IPod touch 5th gen. Home button stuck and power button not working! Please help!
I have an iPod 5th Generation and the home button is jammed down! It felt sticky earlier but now it's stuck down. I used it when the home button wasn't working and had to use my notifications to change from app to app (as I didn't know about assistive touch). I turned it off, but now the power button is no longer responsive! The button isn't stuck, but it doesn't work anymore. It was working fine before, but now it won't respond. Please help!
Try:
http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
fix for Home button
iPhone Home Button Not Working or Unresponsive? Try This Fix
- If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
- If not under warranty Apple will exchange your iPod for a refurbished one for:
Apple - Support - iPod - Repair pricing
You can do it an an Apple store by:
Apple Retail Store - Genius Bar
or sent it in to Apple. See:
Apple - Support - iPod - Service FAQ
- There are third-party places like the following that will repair the Home button. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Maybe you are looking for
-
How can I Download Adobe Acrobat 7 Standard (needed due to a compatibility problem)?
How can I Download Adobe Acrobat 7 Standard (needed due to a compatibility problem)?
-
Drag-and-drop to desktop brings up Finder window - DO NOT WANT
For some reason, every time I drag-and-drop an image from my browser onto my desktop, it now brings up a Finder window. Is there any way to stop this? Thanks.
-
JDBC Connection to MSSQL-Database in Netweaver Portal
We are running into problems when trying to create a Query- or JDBC iView to retrieve data from a MS SQL server table. Here is what we have tried on 2 different EP portals. Portal versions: 6.0.12.0.0 (NW04 SPS12) 6.0.14.0.0 (NW04 SPS14) Step 1: Crea
-
TS1008 when the usb mic (Blue) is connected I can't hear the track play
when the usb mic (Blue) is connected I can't hear the track play. Track plays fine when mic not installed...hoping this is a typical set-up issue easily resolved.
-
I am trying to invoke a Scilab (v4.1.2) script in an empty Labview (v8.5.1) VI, and am continually receiving an error simply telling me that an error occurred while running the script. The script works in scilab alone. I've commented out the 'd' inpu