开发者

uitextview refreshing when using image picker or take a new photo iphone device?

Hello good morning everyone, i am having a weird issue when using imagePickerController. Actually i have a view with 2 uitextviews. the user input some text and then take a option to add a photo with the text in the uitextviews to be sent. i select attach photo from there either i take a new photo using camera or i select from library , once selected the imagePickerController disappears BUT here i have 2 situation with 3 actual devices i tested :

  1. Iphone 3G IOS 4.2.1 > ok the text i input earlier is still on the view.
  2. IPhone 3GS IOS 4.3 > the text dissappears
  3. iPhone 3GS another device IOS 4.3 > the text remains.

Is this a memory issue or 开发者_JAVA技巧a bug somewhere?

Many thanks :)


Just in case If you get a proper solution for this then let me know because I faced the same problem. For the time being I save all the content in a dictionary prior to presenting the Picker. Once the Picker is dismissed I fill The details back in viewWillAppear: method. I am still looking for a standard approach to resolve this issues.

-(void)viewWillAppear:(BOOL)animated{
    if (!registrationDataDict) 
    {
        registrationDataDict = [[NSMutableDictionary alloc] initWithCapacity:0];
    }
    else {
        if (![registrationDataDict valueForKeyIsNull:@"USER_NAME"]) 
        {
            [UserNameTexeFied setText:[registrationDataDict valueForKey:@"USER_NAME"]];
        }
        if (![registrationDataDict valueForKeyIsNull:@"FIRST_NAME"]) 
        {
            [FNameTextFied setText:[registrationDataDict valueForKey:@"FIRST_NAME"]];
        }
        if (![registrationDataDict valueForKeyIsNull:@"LAST_NAME"]) 
        {
            [LNameTextFied setText:[registrationDataDict valueForKey:@"LAST_NAME"]];
        }
}   

Cheers


I would say this is a bug somewhere in your code. The reason is, there are some differences in ios 4.3 and 4.2. I can trace the bug if you post your code. Cheers!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜