Swapping iphone under warranty?

My friend is selling an iphone which has a problem with the touchscreen not responding at times. He's bought another phone and wants to sell his iphone and claims it's under warranty till next year. If I buy it and take it to apple for a replacement. Will I be able to get it?

I don't think so.
Cause the phone's warranty isn't named after you.

  • Will my iPhone still be under warranty? A few months ago I cracked the back of my phone and the other day I picked up my phone and the lock button won't work. I know it's still under warranty because of when I bought it, but because it's cracked can they not fix the lock button for free?
  • Will apple replace my iphone under warranty? I upgraded my iphone 4 to ios7 and its slow as hell. I hve changed my iphone's back once it was broken. Will apple replace my phone? Its still in warranty
  • Is iphone charger under warranty? I just purchased an iPhone 4S 2 weeks ago and I left my charger at school yesterday and was wondering if apple warranty covers the charger also and if I can get replaced?
  • IPhone issues still under warranty, where do I take it? So my iPhone 5s when I shake it is making a noise like a screw is loose in there and it's not the lock button or mute button loose so I would just not care it fix it myself but it's under warranty so I'll use it while I got it. I have this phone through att so do I take it to them or the apple store? And out of curiosity if they replace it do I keep my old one?