2012-10-09 14 views
8

के साथ बहु बाइट कीबार्ड का उपयोग करते हुए uitextfield को संपादित करते समय मैंने एक्सकोड 4.5.1 के साथ आईओएस 6.0 एसडीके अपडेट किया, और बहु ​​बाइट कीबोर्ड (उदा। के साथ UITextField को संपादित करते समय मेरे पास अमान्य संदर्भ त्रुटि 0x0 थी। जापानी कीबार्ड) मेरे आवेदन में। निम्न त्रुटि है:'अवैध संदर्भ त्रुटि 0x0', आईओएस 6.0

Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSaveGState: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextDrawLinearGradient: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSaveGState: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextDrawLinearGradient: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 
Oct 9 21:46:44 example.com Example[2303] <Error>: CGContextFillRects: invalid context 0x0 

मैं नई परियोजना बनाने की कोशिश की और मैं इन त्रुटियों था।

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 
    // Override point for customization after application launch. 
    self.window.backgroundColor = [UIColor whiteColor]; 
    [self.window makeKeyAndVisible]; 

    UITextField *foo = [[UITextField alloc] initWithFrame:CGRectMake(30, 30, 200, 50)]; 

    [self.window addSubview:foo]; 

    return YES; 
} 

अगर आप अमेरिका कुंजीपटल के साथ संपादित, आप त्रुटियों के लिए नहीं होगा: निम्नलिखित नई परियोजना कोड है। क्या आप जानते हैं कि इस समस्या से कैसे बचें ??

उत्तर

1

यह त्रुटि एक uitextfield कि रिक्त है पर डबल क्लिक करने के लिए पता लगाया जा सकता। यह आईओएस में एक बग है। अपने टेक्स्टफील्ड को "" में डालें और त्रुटि गायब हो जाएगी।

+0

@ जी एम: मैं बिल्कुल वही चीज़ देख रहा हूं और सहमत हूं कि यह डबल क्लिक पर नीचे प्रतीत होता है। यद्यपि इस उत्तर के लिए आपका संदर्भ क्या है? कोई भी दस्तावेज/फोरम पोस्ट आप हमें लिंक कर सकते हैं? – sjwarner

+0

मैंने यह भी देखा जब मैंने अपने सिम्युलेटर में टेक्स्ट व्यू को डबलक करने की कोशिश की ... – rkh

संबंधित मुद्दे