Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/ThreemaFramework/SharedUI/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  UITextField+Themed.m   Sprache: Unknown

 

Spracherkennung für: .m vermutete Sprache: Lisp {Lisp[38] Masm[38] ABAP[35]} [Methode: maximale Elemente, drei Dimensionen]

#import "UITextField+Themed.h"
#import "BundleUtil.h"
#import "ThreemaFramework/ThreemaFramework-Swift.h"

@implementation UITextField (UITextField)

- (void)colorizeClearButton {
    if (self.clearButtonMode != UITextFieldViewModeNever) {
        self.rightViewMode = self.clearButtonMode;

        UIImage *clearImage = [[UIImage systemImageNamed:@"xmark.circle.fill"] applyingWithSymbolWeight:UIImageSymbolWeightSemibold symbolScale:UIImageSymbolScaleLarge paletteColors:nil];
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:clearImage forState:UIControlStateNormal];
        button.tintColor = Colors.backgroundButton;
        button.imageView.contentMode = UIViewContentModeScaleAspectFit;
        button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentFill;
        button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;

        [button addTarget:self action:@selector(clear:) forControlEvents:UIControlEventTouchUpInside];
        self.rightView = button;

        button.accessibilityLabel = [BundleUtil localizedStringForKey:@"delete"];
    }
}

- (void)clear:(id)sender{
    self.text = @"";
    // textFieldShouldClear will never called for our custom clear button. We use it to update the save button
    if ([self.delegate respondsToSelector:@selector(textFieldShouldClear:)]) {
        [self.delegate textFieldShouldClear:self];
    }
}

@end

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.