SORU
16 Temmuz 2010, Cuma


UİTextField Dikey Hizalama

Dikey UITextField UIControlContentVerticalAlignmentCenter UIControlContentVerticalAlignmentBottom arasında yarı yolda bulunan metin hizalamak için bir yol vardır ya onlardan biri ile gitmek zorunda mıyım?

CEVAP
10 Aralık 2012, PAZARTESİ


Bir UİTextField alt ve aşağıdaki yöntemleri geçersiz kılmak gerekir:

- (CGRect) textRectForBounds: (CGRect) bounds
{
  CGRect origValue = [super textRectForBounds: bounds];

  /* Just a sample offset */
  return CGRectOffset(origValue, 0.0f, 4.0f);
}

- (CGRect) editingRectForBounds: (CGRect) bounds
{
  CGRect origValue = [super textRectForBounds: bounds];

  /* Just a sample offset */      
  return CGRectOffset(origValue, 0.0f, 4.0f);
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • colacas

    colacas

    29 EKİM 2006
  • Doc Adams

    Doc Adams

    20 HAZİRAN 2007
  • Liz Morgan

    Liz Morgan

    4 Aralık 2011