Category "objective-c"

iOS UItableview scrollToRowAtIndexPath not working anymore

This morning I just installed new Xcode which includes iOS 6. I have a table view loaded with a plist file containing chapters and lines. Chapters define the se

Sorting objects in NSMutableArray with sortUsingComparator

I have the following mutable array: NSMutableArray *persons = [[NSMutableArray alloc]initWithObjects:person1, person2, person3, nil]; where every person is a

adding an external library to a project in Xcode 4.3 [duplicate]

Newbie here, trying to add the CHDataStructures library to a calculator project I'm working on. I did as suggested in the accepted answer at

Detect color under macOS mouse cursor

I want to know how to get the color of the pixel where the OS X / macOS mouse pointer currently is located. I programmed a console application, so I have no win

How to disable Click through to a NSView behind another NSView

I have two NSViews on top of each other. One NSView presents a table with rows. On clicking a row another view is shown on top of that view. Now the problem i

Prevent small negative numbers printing as "-0"

If I do the following in Objective-C: NSString *result = [NSString stringWithFormat:@"%1.1f", -0.01]; It will give result @"-0.0" Does anybody know how I ca

what is the difference between @compatibility_alias and typedef use on @class in Objective-C

Is there any difference between : @compatibility_alias AliasClassName ExistingClassName and typedef ExistingClassName AliasClassName;

Importing Project-Swift.h into a Objective-C class...file not found

I have a project that was started in Objective-C, and I am trying to import some Swift code into the same class files that I have previously written Objective-C

Store photos in mysql database with iOS app

I am looking for a how to create a mysql database with the photos which are uploaded by my iOS app. I have already programming the picker and the upload part, b

How to create Previous/Next buttons above keyboard like in Safari

I'm trying to add Previous/Next buttons above the keyboard like in mobile Safari. There are a lot of questions about that here on StackOverflow, but most answer

Scrolling is disabled when adding UIPanGestureRecognizer to UIScrollView

I have a scroll view and I want to make it disappear whenever a pan is done. It works fine and on panning the scroll view disappears but the problem is now I c

iOS - Record the Voice while phone call in Objective c

Is it possible for an app which records the voice of the user while a phone call? I searched for it and the AVFoundation Framework seems to stop recording whe

How to add action for UIButton

I am new to iPhone technology. Please anyone tell me how to add action for UIButton. UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.fra

What is the proper way of calculating this flow calculation in Objective C?

I'm attempting to make a iPhone flow rate calculator that uses these 3 formulas. Pressure ratio b b = p2 + 0.1 / p1 + 0.1 The C-value and B-Value are given

Facebook adding tester users and admin is: (pending), what does that mean?

The new Facebook developer integration should be really handy and easy, but i'm struggling with creating a test user or a regular Facebook user to get permissio

showBluetoothAccessoryPickerWithNameFilter:completion: cancel button

is there a way to catch the cancel button event on a showBluetoothAccessoryPickerWithNameFilter:completion:? completion block is executed in the same time (way

Dismiss Keyboard

So I have a self created top bar controller that is being implemented in my other controllers views. I have a textfield on this top bar. I was wondering what

Disable UIPageViewController bounce

Searched a lot for this one, but couldn't find a proper solution yet. Is it possible to disable the bounce effect of a UIPageViewController and still use the

How to convert Chinese Html String into NSString

For converting html string into NSString i am using below function Code Snippet : +(NSString *)getStringFromHtmlString:(NSString *)str { NSData *stringD

Linking a static library to an iOS project in Xcode 4

I have a project (AQGridView) that compiles to a static library, but I can't seem to add it to my project. Dragging in the project to my project creates a work