objective-c Questions

6

I would like to have an autocomplete textfield that autocompletes locations for me like the one for android: https://developers.google.com/places/training/autocomplete-android Does anyone know wh...
Ilk asked 6/2, 2015 at 14:0

3

I'm trying to implement Universal Links in my app. I read a lot of tutorials and followed this one to the letter: How to support Universal Links in iOS App and setup server for it? When I click a ...
Preussen asked 8/8, 2016 at 21:56

31

Solved

I want to format a UITextField for entering a credit card number into such that it only allows digits to be entered and automatically inserts spaces so that the number is formatted like so: XXXX X...
Mercurial asked 23/8, 2012 at 1:35

5

I am trying to play MPMedaiItem in MPMusicPlayerController in iOS. In my case , i have a UITableView that show songs from playlist. When i tap cell on UITableView , i want to play that song with MP...
Yuu asked 9/1, 2013 at 6:9

11

Solved

I am creating a table view in which there are 10 sections, all having a header view but no cells. So, in short, my table view will display 10 header views only; there will be no cells in any sectio...
Ronda asked 14/2, 2014 at 5:54

13

Solved

Grouped table views seem to have extra padding on the bottom in iOS 6 (iOS 5 does not have it), but I can't find any documentation that suggests this is correct / expected behavior. This affects t...
Raouf asked 8/1, 2013 at 7:52

6

Solved

How can I scroll my table view to the bottom when using dynamic cell height? For some reason this code does not work in this scenario: [self.tableView scrollRectToVisible:CGRectMake(0, self.table...
Standfast asked 27/6, 2016 at 1:17

5

I read a very interesting blog about implementing some anti-piracy protection into your apps. Some of them dont work anymore, some of them do. The 2 ones that still are effective to an extent are t...
Gasper asked 12/8, 2011 at 9:28

3

Solved

I want to show 2 options like "hi" & "bye" when user completes selection on UIWebView. I have added observer to my view controller as follows. But I don't know further implementation. [[UIMen...

4

Solved

I want to catch event when user finish change selection in UITextView. Method textViewDidChangeSelection: call a few times while user pulls cursor. I try to use touchesEnded:withEvent:, but it does...
Aquiculture asked 4/2, 2014 at 19:20

7

Solved

I have a custom UISlider that is relatively tough for big fingered people to grab hold of and slide due to the size of the "thumb image". Is there any way to increase the size of clickable / dragga...
Boulogne asked 2/11, 2012 at 13:32

3

How do you calculate the focusPointOfInterest (a CGPoint value between 0,0 and 1,1) for an given AVCaptureDevice? I've been following the code samples from the latest WWDC but I really don't under...
Spline asked 16/8, 2010 at 18:36

4

Solved

There are so many settings in the preferences for Code->Style->Objective-C. I'm looking for the right one to reformat this line of code SCPropertyDefinition *test = [SCPropertyDefinition definiti...
Sensual asked 29/4, 2013 at 22:36

7

A UIViewController adds itself to the default center: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(editFood) name:@"editFood" object:nil]; Then a UITableView del...

2

Solved

Full warning: Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation' Getting it on the line: [self orientationChanged:interfaceOr...
Stimulate asked 10/8, 2011 at 18:16

1

I have a class that receives an AVCaptureDevice object as a parameter and I'd like to test it. I found the swizzle method to create an instance of AVCaptureDevice extension AVCaptureDevice { clas...
Bebeeru asked 5/6, 2024 at 22:13

5

I know there are someone have ask this question.But it is a sorry i donot find the answer. dispatchQueue = dispatch_queue_create("myQueue", NULL); [captureMetadaOutput setMetadataObjectsDelegate:s...
Ammoniate asked 26/6, 2015 at 2:20

4

I have installed Charles proxy, then installed the root certificate and root certificate for iOS simulator. Then I ran the application of the simulator but I cannot see any request inside charles. ...
Jamisonjammal asked 8/11, 2016 at 14:25

5

Solved

I'm trying to send push notification for iOS via Google cloud functions but it returns error that The provided registration token is not registered. But I've checked it by debugging my app and the ...

6

Solved

Is there a way to disable interactions on a webview? So that the user can not go any further than the webview that is loaded? EDIT: Disabling UserInteractions is not a solution because the website...
Companionable asked 12/4, 2017 at 10:26

5

Solved

I've just started using code snippets for the first time, i've added a snippet, set the shortcut, but when I type the shortcut and hit Esc - it doesn't show up. What am I doing wrong? I've tried re...
Checked asked 11/9, 2012 at 11:40

7

I want to calculate the histogram of a CGImage. I am using the CIAreaHistogram built-in CoreImage filter. Justin Mrkva has done something along similar lines. He says: I get the CIImage for the...
Cluny asked 1/12, 2014 at 21:5

13

I try to change font color from white to black for UISegmentedControl (for iOS 4.*) UISegmentedControl *button = [[[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:itemTitle, nil...
Ofelia asked 27/1, 2012 at 6:32

7

Solved

I have a UIViewController that is pushed onto a UINavigationController and is currently displayed. When I go to start some asynchronous task inside the view controller, I can set hidesBackButton on...
Dzoba asked 2/4, 2009 at 2:6

9

Solved

Is there a simple way to do something like.. [NSMagicDataConverter humanStringWithBytes:20000000] ..which would return "19.1MB"?
Prussia asked 21/2, 2009 at 8:11

© 2022 - 2025 — McMap. All rights reserved.