Tag: cocoa touch

How do I connect an AudioFilePlayer AudioUnit to a 3DMixer?

I am trying to connect an AudioFilePlayer AudioUnit to an AU3DMixerEmbedded Audio Unit, but I’m having no success. Here’s what I’m doing: create an AUGraph with NewAUGraph() Open the graph Initalize the graph Add 3 nodes: outputNode: kAudioUnitSubType_RemoteIO mixerNode: kAudioUnitSubType_AU3DMixerEmbedded filePlayerNode: kAudioUnitSubType_AudioFilePlayer Connect the nodes: filePlayerNode -> mixerNode mixerNode -> outputNode Configure the filePlayer Audio […]

Tint a UIView with all its subviews

Any way you can tint a UIView? Not the background color, but the entire UIView with all its subviews. e.g – A UIView with an animation of a star rotating , i.e The UIView shape is constantly changing.

How to check internet connection on iOS device?

I’m wondering how I can check if the user is connect to internet through WIFI or cellular data 3G or 4G. Also I don’t want to check if a website is reachable or not, the thing that I want to check if there is internet on the device or not. I tried to look over […]

UICollectionView reloadData resigns first responder in section header

I have a UICollectionView that have section header. In the section header I have a UISearchBar. I want to filter the content in my collection view when I type in the search bar. I do this with the following method: // The method to change the predicate of the FRC – (void)filterContentForSearchText:(NSString*)searchText { NSString *query […]

UIButton inside UIImageView does not respond to taps

I have a scroll view, which has an image view with an image as a subview, and the image view has a UIButton as one of its subviews. The problem is, I am not able to click on the button. I can SEE the button, but I cannot tap on it. Can someone tell me […]

Crop an image using rectangular box of selected area?

I am looking for a good tutorial or sample code, that would show how to crop an image taking from iphone camera something in lines of but you would control the corners with your fingers any tip would be greatly appericated, as i tried in many way but didn’t get a result.

(Cocoa error 3840.)” (Invalid value around character 0.) AFNetworking

I’ve been getting the following error when using the GET method to retrieve a file from a server: Error: Error Domain=NSCocoaErrorDomain Code=3840 “The operation couldn’t be completed. (Cocoa error 3840.)” (Invalid value around character 0.) UserInfo=0x16e81ed0 {NSDebugDescription=Invalid value around character 0.} I’ve tried a number of different things and I believe it could be something […]

UIActionSheet on iPad frame too small

I am trying to display a UIActionSheet on the iPad with a UIPickerView in it, I have the equivalent code working for iPhone so my UIPickerView delegate and datasource stuff work, but on the iPad when I use -[UIActionSheet showFromRect:inView:animated:] the result UIPopover/UIActionSheet is way too small and I can not seem to set the […]

Installation Failed: Invalid Argument -iOS Extension

https://imgur.com/vFn0S7g Hi guys, I am about to build watch app target from existing project. I encountered a strange error upon finishing build that unables me to run the watch app properly. Here is the attached screenshot. Environment OSX 10.10 XCode 6.2 Beta Simulator iPhone 6 iOS 8.2 When I try creating new watch app project […]

Create an NSManagedObject Without Saving?

Possible Duplicate: Store But Don't Save NSManagedObject to CoreData? I need to make an NSManagedObject without saving it, how can I do this? The reason I want to do this is the app has a setup in which the user enters their details, however I only want to save the object if they complete the […]