working with dynamic views in ios development