Box2d Collision Detection with Sprite Instead of SetAsEdge

Hey Guys, not only im new to this forum, but im new to box2d (double the fun). K well, im following this tutorial http://www.raywenderlich.com/457/intro-to-box2d-with-cocos2d-tutorial-bouncing-balls and in this tutorial the tutor uses the edges of the screens...
Code:
groundBox.SetAsEdge(b2Vec2(0,0), b2Vec2(winSize.width/PTM_RATIO, 0));

as collision points. My question is how would i use a sprite instead of edge of the screen. Any sort of help will be appreciated. Thank You
If by sprite you mean body (b2Body*), that is, a thin box that is placed on the edge of the screen, than:

Code:
b2BodyDef bd;
bd.position.Set(0, 0);
b2Body* body = world->CreateBody(&bd);
      
b2PolygonShape shape;
shape.SetAsBox(screenSize.width/PTM_RATIO, 0.5);  // The box's size
      
b2FixtureDef fd;
fd.shape = &shape;
fd.density = 0.1f;
body->CreateFixture(&fd);

Original thread: https://box2d.org/forum/viewtopic.php?t=6680