According to the Apple co-founder, perseverance matters most. Fortunately, there's a simple way to develop greater resilience.