That's awesome. You can make a scale another way too, by using the barometer in the iPhone. You will need a ziplock or other airtight clear plastic bag, and an object of known weight for calibration.
You can measure the change in air pressure in the bag with your iPhone inside, and put your object to weigh on top of the bag (carefully balanced). There is a linear relationship between the rise in air pressure and the weight of the object on the bag (I tried this and it does work)