-(void)updateResult {
@try {
if (questionFlag == INSERT_IMAGE_DETAILS) {
[self getImageDetail];
[m_ivwMainConsumerImage setImage:[UIImage imageWithContentsOfFile:[NSString stringWithFormat:PROFILE_PHOTO_FILEPATH,[[[DataModel sharedConsumerData] images] lastObject]]]];
}
}
@catch ....
I am new to Objective C and the above code snippet is a part of a program where I am getting the warning: 'More % conversions than data argument' for the line
[m_ivwMainConsumerImage setImage:[UIImage imageWithContentsOfFile:[NSString stringWithFormat:PROFILE_PHOTO_FILEPATH,[[[DataModel sharedConsumerData] images] lastObject]]]];
Can you please let me know how to overcome this error?
Thanks