Start by pulling back the slingshot with your finger. Moving it up or down will determine how high or low the bird flies. The further back you pull the slingshot is how far or short the bird flies. Through practice, you'll become more skilled at aiming both at the right angle and at the right spot where the pigs are.
If you have a computer version, you'll be using your mouse rather than your finger.