xcode - 3.1.3 and 3.2 different behaviour -


मैं एक कस्टम सेल का उपयोग कर रहा हूँ तालिका व्यू के साथ एक UITextField

  - (UITableViewCell * ) तालिकादृश्य: (UITableView *) तालिका दृश्य सेलफ़ोरोअटइंडपैथ: (एनएसआईएसएक्सपैथ *) इंडेक्सपेथ {स्थैतिक एनएसएसटीइंग * सेलआईडेंटिफायर = "सेल"; UITableViewCell * सेल = [तालिकादृश्य] dequeueReusableCellWithIdentifier: CellIdentifier]; यदि (सेल == नीला) {सेल = [[[यूआईटीबलव्यूजेल alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: सेलआईडेंटिफायर] autorelease]; UITextField * txtField = [[UITextField alloc] initWithFrame: CGRectMake (0, 0, 280, 24)]; TxtField.placeholder = @ "& lt; पाठ दर्ज करें & gt;"; TxtField.textAlignment = UITextAlignmentLeft; TxtField.clearButtonMode = UITextFieldViewModeAlways; TxtField.autocapitalizationType = UITextAutocapitalizationTypeNone; TxtField.autocorrectionType = UITextAutocorrectionTypeNo; [Cell.contentView addSubview: txtField]; [TxtField रिलीज़]; }  

}

यह ठीक काम करता है और UITextField सेल को कवर करता है।

जब मैं इसे 3.2 sdk या iPad पर UITextField पर चलाता हूं सेल को ओवरलैप करने के लिए ठीक से गठबंधन नहीं किया गया है और मुझे 280 यूआईटीप्लेफ़िल्ड * txtField = [[UITextField alloc] initWithFrame के बजाय 270 की एक UITextField चौड़ाई का उपयोग करना है: CGRectMake (0, 0, 270, 24)];

ऐसा लगता है कि कुछ पिक्सेल अनुपात गलत है इसे कैसे सुधारा जा सकता है? ओएस के संस्करण को निर्धारित करने का कोई तरीका क्या है (3.1.2, 3.1.3, 3.2 या शायद 4.0 भी) या फिर इसे एक और तरीका किया जा सकता है?

धन्यवाद Teo


Comments

Popular posts from this blog

python - rename keys in a dictionary -

lex - Building a lexical Analyzer in Java -

windows - Heroku throws SQLITE3 Read only exception -