sender

    28熱度

    3回答

    所以我有一個大的UIButton,這是一個UIButtonTypeCustom,並且按鈕目標被稱爲UIControlEventTouchUpInside。我的問題是如何確定觸摸發生在UIButton的哪個位置。我想要這個信息,所以我可以從觸摸位置顯示一個彈出窗口。這是我試過的: UITouch *theTouch = [touches anyObject]; CGPoint where = [t

    2熱度

    3回答

    我在C#.NET 4.0中創建了一個Outlook 2007加載項。 我想閱讀我的C#代碼中的安全發件人列表。 if (oBoxItem is Outlook.MailItem) { Outlook.MailItem miEmail = (Outlook.MailItem)oBoxItem; OlDefaultFolders f = Outlook.OlD

    3熱度

    1回答

    我有一個按鈕叫myButton,我給它一個UIGestureRecognizer這樣,當按下用兩個手指myButton的IBAction只運行: UIGestureRecognizer *tapper = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(twoFingerTap:)]; [(UITapGes

    1熱度

    1回答

    我通過代碼生成了按鈕。並用按鈕我有一個方法來調用Silverlight的子窗口。 private void btnXX_Click(object sender, RoutedEventArgs e) { Button btn = (Button)sender; SlotMaker slotMaker = new SlotMaker(); slotMak

    3熱度

    3回答

    我有一個包含16個TCheckBox和32個TEditBox的窗體。 每2個TEditBox en-ability取決於checkBox狀態。 所以我使用這個代碼太長: //T1 procedure TOFAddForm.T1Click(Sender: TObject); begin Q1.Enabled:=T1.Checked; P1.Enabled:=T1.Checke

    0熱度

    2回答

    我有一個ToolStripButton作爲點擊事件中的發件人。我需要能夠將發件人轉換爲Toolstripbutton,並以整數形式檢索其標籤屬性。我想,我在下面的代碼中這樣做。我的程序編譯成功,但它引發無效的類型轉換運行時錯誤。 theTool := TMakerTool((sender as ToolStripButton).tag); TMakerTool = public enum

    -2熱度

    1回答

    我想直接在應用程序didFinishLaunchingWithOptions中調用以下方法。 目前這個動作是通過一個按鈕觸發的。我如何在沒有按鈕的情況下調用它? - (IBAction)toggleVertical:(id)sender { [splitController toggleSplitOrientation:self]; [self configureView];

    0熱度

    1回答

    我是ROR的新人,所以這可能是一個愚蠢的問題。 我正在使用ActionMailer發送郵件給任何reciepient。 最初我嘗試過使用Gmail的SMTP設置。 但是在每次發送郵件時,它都來自同一個mail_id。 但在我的應用程序中,我希望發件人在不同的時間有所不同。 那麼,使用ActionMailer可以做到嗎?

    0熱度

    2回答

    我有這樣的代碼來控制兩個複選框(自定義按鈕): - (IBAction) setCheckBox: (id) sender{ UIImage *selected = [UIImage imageNamed:@"checkbox_checked.png"]; UIImage *notSelected = [UIImage imageNamed:@"checkbox_unchec

    -1熱度

    2回答

    tl; dr:我創建了一個與發件人具有相同圖像的UIImageView。我試圖找出如何去做這件事。 我試圖讓發件人圖像。這裏是我的代碼來獲取發件人: UIButton *playSelectionTag = (UIButton *)sender; if (playSelectionTag.tag == 5) { /* [popInToolbar release];