Category "objective-c"

How to find people using my app within some radius of my location

Hi I build the app to find all bar and cafe within some radius of my location with API of google, now I want to add all people using my app within some radius o

Class is implemented in both. One of the two will be used

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from HeapAnalytics. Apparently the HeapAn

Logging the class name of all UIViewControllers in a project

We have received a HUGE project from outsourcing that we are trying to "repair". There are hundreds of view controllers within the project. Our goal is to easil

it possible to Pass Data with popViewControllerAnimated?

I came across an interesting problem, i have main ViewController let's call him MainVC with navigationController and i am doing performSegueWithIdentifier from

What do the null-related property attributes in Xcode do?

With Xcode 6.3 I noticed some property attributes, namely: nonnull null_resettable nullable Could someone explain what they do when applied?

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