Let's say I get an iPhone 4 from WalMart tomorrow morning and it happens to have issues with the yellow screen, can I take it to apple and have a genius replace it?

Will Apple send me back to Walmart and have them replace it? How does this work?

Thank you