Govindarao Kondala

Dec 23, 2015 14:23
any luck ?
Dec 23, 2015 13:58
okay ?
Dec 23, 2015 13:58
moreScreenItems = [[NSArray alloc] initWithArray:[self moreScreenElements]];
[self.tblMore reloadData];
Dec 23, 2015 13:58
just add following lines in your viewWillAppear
Dec 23, 2015 13:57
hi
Dec 23, 2015 13:57
VCLoginViewController * loginVC = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"VCLoginViewController"];
[loginVC setIsLoginForCart:NO];
UINavigationController * navControllerLogin = [[UINavigationController alloc] initWithRootViewController:loginVC];
[navControllerLogin setNavigationBarHidden:YES];
[self presentViewController:navControllerLogin animated:YES completion:nil];
if ([VCConfiguration isUserAlreadyLoggedIn])
{
moreScreenItems = [[NSArray alloc] initWithArray:[self moreScreenElements]];
Dec 23, 2015 13:56
okay
Dec 23, 2015 13:39
am I right ?
Dec 23, 2015 13:39
this case time, it work properly
Dec 23, 2015 13:39
case RowSelectedMethodLogout:
Dec 23, 2015 13:39
I think
Dec 23, 2015 13:36
there ?@Imran
Dec 23, 2015 13:36
do one thing
Dec 23, 2015 13:36
hi
Dec 23, 2015 13:34
k
Dec 23, 2015 13:32
@Imran
Dec 23, 2015 13:32
am I right ?
Dec 23, 2015 13:32
Table data in VCMoreViewController is not updating
Dec 23, 2015 13:31
let me check and getback to you
Dec 23, 2015 13:24
remove if there is any confidential details
Dec 23, 2015 13:24
I am little confused here
Dec 23, 2015 13:24
keep your viewcontroller.m code in pastebin and share
Dec 23, 2015 13:19
okay
Dec 23, 2015 13:17
so you need to write all you reload functionality in dissmis VCLoginViewController
Dec 23, 2015 13:16
after succesful login you need to do change all values
Dec 23, 2015 13:15
asign [self moreScreenElements]; result to moreScreenItems array
Dec 23, 2015 13:13
and togle isUserAlreadyLoggedIn value also while you are doing logout or login time
Dec 23, 2015 13:13
before you reload table
Dec 23, 2015 13:13
- (NSArray *)moreScreenElements
{
NSString *plistPath;

if ([VCConfiguration isUserAlreadyLoggedIn])
plistPath = [[NSBundle mainBundle] pathForResource:@"MoreScreenOptionsData" ofType:@"plist"];
else
plistPath = [[NSBundle mainBundle] pathForResource:@"Guest_More" ofType:@"plist"];

moreScreenItems = [[NSArray alloc] initWithContentsOfFile:plistPath];
return moreScreenItems;
}
Dec 23, 2015 13:13
can you call following method
Dec 23, 2015 13:13
hi
Dec 23, 2015 13:11
@Imran
Dec 23, 2015 13:11
there ?
Dec 23, 2015 13:10
okay ?
Dec 23, 2015 13:10
@Imran
Dec 23, 2015 13:10
than it will change
Dec 23, 2015 13:10
and than reload
Dec 23, 2015 13:09
can you please call moreScreenElements and asign that values to your preloaded array
Dec 23, 2015 13:05
sorry, not getting
Dec 23, 2015 13:01
uwc
Dec 23, 2015 12:56
good one..keep it up
Dec 23, 2015 12:55
yes that's great
Dec 23, 2015 12:55
can you paste your didselect method code here
Dec 23, 2015 12:54
so what I am suggesting is
Dec 23, 2015 12:54
if you call this everytime while selecting table cell , that will access yout file system to load data from your plist
Dec 23, 2015 12:54
NSarray *allRowDetails = [self moreScreenElements]
Dec 23, 2015 12:51
there ?@Imran
Dec 23, 2015 12:50
there is one performence issue in your code @Imran
Dec 23, 2015 12:50
Hi
Dec 23, 2015 12:46
thanks