पर कोनेराइडियस के साथ UILabel जोड़ते समय क्रॉल में आता है, मैं अपने टेबल व्यू में प्रत्येक सेल में एक UILabel जोड़ रहा हूं। यह शुरुआत में कोई समस्या नहीं प्रस्तुत करता है। जब मैं layer.cornerRadius
का उपयोग करके UILabel के कोनों को गोल करता हूं, तो तालिका दृश्य को स्क्रॉल करना बंद हो जाता है।UITableView प्रत्येक सेल
UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(cell.bounds.origin.x+10 ,5, 30, 30)];
label1.backgroundColor = ([[managedObject valueForKey:@"color"] hasPrefix:@"FFFFFF"]) ? [UIColor blackColor] : color;
label1.layer.cornerRadius = 10.0f;
[cell addSubview:label1];
आप देखना चाहते हैं [कैसे Tweetie यह करता है] (http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/) (आसानी से स्क्रॉल करता है)। – icktoofay