Gaia GPS
  • Home
  • Adventures
    • User Stories
    • Activities
      • Backcountry Skiing
      • Boating
      • Emergency Response
      • Fishing
      • Offroading
  • Out and Back Podcast
    • Gaia GPS

      Climber and Entrepreneur Matt Segal on Finding Balance

      February 17, 2021

      Gaia GPS

      Camping and Overlanding Save Atlanta Couple’s Marriage

      February 11, 2021

      Adventures

      Backcountry Skiing in the Himalayas with Mountain Guide…

      February 3, 2021

      Backcountry Skiing

      The Best Backcountry Skiing Gear Recommendations

      January 19, 2021

      Gaia GPS

      Earn Your Turns: Learn How to Backcountry Ski…

      January 4, 2021

      Gaia GPS

      Lessons from the Trail: Best Out and Back…

      December 28, 2020

      Gaia GPS

      Buried Alive: Bruce Tremper Shares His Avalanche Story

      December 21, 2020

  • News
    • New Maps
    • New Features
    • Gaia GPS News
  • Shop Swag
Gaia GPS
  • Home
  • Adventures
    • User Stories
    • Activities
      • Backcountry Skiing
      • Boating
      • Emergency Response
      • Fishing
      • Offroading
  • Out and Back Podcast
    • Gaia GPS

      Climber and Entrepreneur Matt Segal on Finding Balance

      February 17, 2021

      Gaia GPS

      Camping and Overlanding Save Atlanta Couple’s Marriage

      February 11, 2021

      Adventures

      Backcountry Skiing in the Himalayas with Mountain Guide…

      February 3, 2021

      Backcountry Skiing

      The Best Backcountry Skiing Gear Recommendations

      January 19, 2021

      Gaia GPS

      Earn Your Turns: Learn How to Backcountry Ski…

      January 4, 2021

      Gaia GPS

      Lessons from the Trail: Best Out and Back…

      December 28, 2020

      Gaia GPS

      Buried Alive: Bruce Tremper Shares His Avalanche Story

      December 21, 2020

  • News
    • New Maps
    • New Features
    • Gaia GPS News
  • Shop Swag

Technical Post: UISegmentedControl subclass for iOS5

by Andrew Johnson September 6, 2011
by Andrew Johnson September 6, 2011

Lately, we have been tweaking our apps to be compatible with iOS5.

One thing we noticed is that the UISegmentedControl, which shows a bar of menu options, no longer works exactly as it did under iOS4. Specifically, when you programatically set the selectedSegmentIndex property, it no longer calls the associated method. Under iOS4, when the user pressed the menu option, or you set the index, the method would run. But under iOS5, it only gets run if the user presses the button. You can see this bug popping up on the internet here.

Rather than put a bunch of logic throughout my code to deal with this, I developed this subclass of UISegmentedControl on the advice of Anna, which works as expected. Download it from GitHub here.

iOS5technical post
0
FacebookTwitterRedditEmail
Andrew Johnson

Andrew founded Gaia GPS. He writes code and manages the business.

previous post
Download iBurn 2011 for Android
next post
Board Member’s Business

You may also like

Get Worldwide 3D Maps on the Web at...

February 25, 2021

How to Use Gaia GPS for Snowmobiling

February 25, 2021

Gaia GPS Joins Forces with Outside to Transform...

February 24, 2021

How to Use Maps to Help Avoid Avalanches

February 18, 2021

The Art of Layering : What to Wear...

February 18, 2021

Climber and Entrepreneur Matt Segal on Finding Balance

February 17, 2021

Get 2,400+ Overlanding Routes with the New Trails...

February 11, 2021

Camping and Overlanding Save Atlanta Couple’s Marriage

February 11, 2021

Winter Hiking Safety Guide: How to Stay Warm...

February 4, 2021

Backcountry Skiing in the Himalayas with Mountain Guide...

February 3, 2021

Keep in touch

Facebook Twitter Instagram Youtube

Popular Posts

  • 1

    How to Read Topographic Maps

    October 7, 2020
  • 2

    Forrest Fenn’s Treasure has been Found

    March 12, 2019
  • 3

    How to Save Phone Battery Life in the Backcountry

    August 24, 2020
  • 4

    Gaia GPS and Apple CarPlay Bring Outdoor Maps to Your Dashboard

    February 24, 2020
  • 5

    Easy to Read, Tiny to Download: The All New Gaia Topo

    January 28, 2020

Categories

  • Adventures
  • Android
  • App Comparisons
  • App Updates
  • Backcountry Skiing
  • Boating
  • Company News
  • Emergency Response
  • Featured
  • Fishing
  • Gaia GPS
  • GaiaCloud
  • Hikes
  • How-To
  • Hunting
  • iOS
  • New Features
  • New Maps
  • Newsletter
  • Offroading
  • Out and Back Podcast
  • User Profiles
  • Facebook
  • Twitter
  • Instagram
  • Youtube
  • RSS

@2020 - All Right Reserved. Gaia GPS


Back To Top