UISearchDisplayController Without Dimming?

You are correct that it is the UISearchDisplayController that is managing the “dimming” effect that you’re seeing. What the UISearchDisplayController is doing is adding a UIControl as a subview to the view of the searchContentsController (a property of UISearchDisplayController), which is likely your detail-view controller. This UIControl is just an alpha’d view with a gray … Read more

How to get user details using twitter api v1.1 (Twitter error 215)

First, you need to Authenticate your request (Get permission). second, see follow these steps: 1.Download FHSTwitterEngine Twitter Library. 2.Add the folder FHSTwitterEngine” to your project and #import “FHSTwitterEngine.h”. 3.add SystemConfiguration.framework to your project. Usage : 1.in the [ViewDidLoad] add the following code. UIButton *logIn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; logIn.frame = CGRectMake(100, 100, 100, 100); [logIn setTitle:@”Login” … Read more

Check for Internet connection using the iOS SDK [duplicate]

Best way is to use Reachability code. Check here for apple sample code. That has a lot of convenience methods to check internet availability, Wifi/WAN connectivity check etc.. For eg:- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkChanged:) name:kReachabilityChangedNotification object:nil]; reachability = [Reachability reachabilityForInternetConnection]; [reachability startNotifier]; – (void)networkChanged:(NSNotification *)notification { NetworkStatus remoteHostStatus = [reachability currentReachabilityStatus]; if(remoteHostStatus == NotReachable) { … Read more

Detect if headphones (not microphone) are plugged in to an iOS device [duplicate]

Here is a method of my own which is a slightly modified version of one found on this site : http://www.iphonedevsdk.com/forum/iphone-sdk-development/9982-play-record-same-time.html – (BOOL)isHeadsetPluggedIn { UInt32 routeSize = sizeof (CFStringRef); CFStringRef route; OSStatus error = AudioSessionGetProperty (kAudioSessionProperty_AudioRoute, &routeSize, &route); /* Known values of route: * “Headset” * “Headphone” * “Speaker” * “SpeakerAndMicrophone” * “HeadphonesAndMicrophone” * “HeadsetInOut” … Read more

How to create custom modal segue in 4.2 Xcode using storyboard [closed]

This custom seque pops back to the root of a navigation stack. Use a normal pop instead of “popToViewController” if you want to go back one level. I just love the name of this method. header: #import <UIKit/UIKit.h> @interface FlipTopPopToRoot : UIStoryboardSegue @end implementation: #import “FlipTopPopToRoot.h” @implementation FlipTopPopToRoot – (void) perform { UIViewController *src = … Read more