Under Armour sold MyFitnessPal, a fast calorie-calculation platform, to investment firm Francisco Partners for $345 million.