Como recuperar informações da operadora?

CTTelephonyNetworkInfo* telephonyNetworkInfo = [[CTTelephonyNetworkInfo alloc] init];CTCarrier* carrierObject = [telephonyNetworkInfo subscriberCellularProvider];string = [[NSString alloc] initWithFormat:@”Allow VoIP: %dnCarrier Name: %@nISO Country Code: %@nMobile Country Code: %@nMobile Network Code: %@”, carrierObject.allowsVOIP, carrierObject.carrierName, carrierObject.isoCountryCode, …

Continuar lendo

Snippet de código de teste NUnit

Crie um arquivo XML e salve-o com a extensão .snippet. <CodeSnippets >=”http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet”> <CodeSnippet Format=”1.0.0″> <Header> <Title>NUnitTestSnippet</Title> <Author>Ashutosh</Author> <Description>Creates a NUnit Test Snippet</Description> <Shortcut>nunit</Shortcut> </Header> <Snippet> <References> <Reference> <Assembly>nunit.framework.dll;</Assembly> </Reference> </References> …

Continuar lendo