This demo shows how to put segement control on navigation bar and with badget over segement control