के साथ बहु बाइट कीबार्ड का उपयोग करते हुए 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;
}
अगर आप अमेरिका कुंजीपटल के साथ संपादित, आप त्रुटियों के लिए नहीं होगा: निम्नलिखित नई परियोजना कोड है। क्या आप जानते हैं कि इस समस्या से कैसे बचें ??
धन्यवाद, मुझे मिल गया। – terut