Skip to content

Instantly share code, notes, and snippets.

@guidosabatini
guidosabatini / XCDFakeCarrier.m
Created November 13, 2012 16:33 — forked from 0xced/XCDFakeCarrier.m
Hack to choose the displayed carrier name in the iOS simulator, now working in iOS 5 and iOS 6 (with different carrier names)
//
// Copyright (c) 2012 Cédric Luthi / @0xced. All rights reserved.
//
#if TARGET_IPHONE_SIMULATOR
#define ITEMISENABLED_LENGHT_IOS5 23
#define ITEMISENABLED_LENGHT_IOS6 24
#define STATUSBARBATATYPEENCODING_IOS5 "^{?=[23c][64c]ii[100c]"
#define STATUSBARBATATYPEENCODING_IOS6 "^{?=[24c][64c]ii[100c]"