cocoa-touch Questions

4

I'm trying to do the union between two MKCoordinateRegion. Does anybody have an idea on how to do this?
Ionosphere asked 21/7, 2011 at 12:5

3

While trying to debug my view hierarchy, I get the following error: Error: Unable to capture view hierarchy. Details: No plist data for fetching view hierarchy: error evaluating expression “(id...
Scopoline asked 22/2, 2017 at 2:23

4

Solved

The Apple URL Scheme Reference gives a nice overview of a number of URL schemes you can use to open certain built-in apps with some parameters. I know that this is not a complete list of all possi...
Help asked 15/5, 2012 at 10:36

7

I have an UIImage and want to shift it's saturation about +10%. Are there standard methods or functions that can be used for this?
Pennant asked 17/7, 2009 at 17:48

3

I have an iOS application written in Swift 2 in Xcode 8.2.1, that's built for iOS 10.2. I've had a number of crash reports from TestFlight and despite symbolication, none of the crash logs show an...
Committal asked 20/2, 2017 at 4:28

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

3

Solved

How can I read the data from the header sent by in the server response. I am using NSURLConnection to send the request.
Valorize asked 8/6, 2011 at 0:34

8

Solved

I am new to iPhone, How do I have my UISlider go from 1 to 100 in increments of 1? slider = [[UISlider alloc] init]; [slider addTarget:self action:@selector(sliderChange:) forControlEvents:UICont...
Quietly asked 11/10, 2012 at 7:14

6

In my iPhone app I am using the following code to find a file's size. Even though the file exists, I am seeing zero for the size. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDire...
Perretta asked 21/4, 2011 at 12:8

3

Solved

How to detect in which app my custom keyboard used and show different button? E.g. in Twitter I would add @ to string I post into input field and in Reddit /r/
Gavrilla asked 23/5, 2015 at 1:14

13

Solved

I am trying to convert an image into grayscale in the following way: #define bytesPerPixel 4 #define bitsPerComponent 8 -(unsigned char*) getBytesForImage: (UIImage*)pImage { CGImageRef image = ...
Couching asked 19/8, 2009 at 9:55

18

How to use threading in swift? dispatchOnMainThread:^{ NSLog(@"Block Executed On %s", dispatch_queue_get_label(dispatch_get_current_queue())); }];
Spikes asked 5/6, 2014 at 9:16

17

Solved

I have a UILabel that displays some chars. Like "x", "y" or "rpm". How can I calculate the width of the text in the label (it does not ues the whole available space)? This is for automatic layoutin...
Terti asked 24/8, 2009 at 19:52

8

Solved

It takes roughly 3-4 seconds for the keyboard to pop up after I touch my UITextField. This only occurs on the first time the keyboard pops up since the app launched, afterwards the animation starts...
Faux asked 20/2, 2012 at 6:26

36

Solved

I’ve been working on an application for a couple of years and received a simple design request: Round the corners on a UIView and add a drop shadow.To do as given below. I want a custom UIView... :...
Rotative asked 21/1, 2011 at 0:58

13

Solved

I have view with a UITapGestureRecognizer. So when I tap on the view another view appears above this view. This new view has three buttons. When I now press on one of these buttons I don't get the ...
Leakage asked 27/7, 2010 at 13:54

18

Solved

Could you guys help me to translate the following code into Swift? [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/de/app/x-gift/id839686104?mt=8&...
Extraterrestrial asked 17/9, 2014 at 5:30

11

Solved

I'm using a custom drawn UITableViewCell, including the same for the cell's accessoryView. My setup for the accessoryView happens by the way of something like this: UIImage *accessoryImage = [UIIm...
Polly asked 15/5, 2009 at 15:40

5

I'm working on an app in which I load different html files with mostly dark backgrounds. Right now there's a small white flash when navigating from one page to another, presumably since the next pa...
Dictionary asked 26/12, 2014 at 10:35

4

Solved

Regardless on which controller type (UIViewController, UITableViewController), the following line always yields null in the ViewDidLoad method: this.View.Window Is this behavior normal, or am I ...
Seigneury asked 23/4, 2012 at 9:47

4

Solved

I know that this question must have been answered plenty of times already, but I have no idea why the touchesBegan: is not called in my UIView. Before I added it in my app, I made a trial project ...
Autotoxin asked 10/7, 2012 at 11:14

33

Solved

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is supposed to take me to the view that I created, I get an NSInternalInconsistencyExcept...
Addi asked 21/1, 2011 at 20:35

8

Solved

I have an app which compiles and runs fine in older Macs with Intel processors in physical devices & iOS simulators. The same app also compiles and runs fine from newer Apple Silicon Mac with M...
Fidellia asked 31/1, 2021 at 11:4

5

Solved

In a model UIViewController I have the following implementation of loadView (everything is created programmatically): - (void)loadView { // Add Basic View UIView *myView = [[UIView alloc] initW...
Bough asked 24/1, 2011 at 18:31

7

Solved

It appears that userInteractionEnabled=NO on a parent view will prevent user interaction on all subviews. Is this correct? Is there any way around this?
Riplex asked 4/5, 2011 at 17:18

© 2022 - 2024 — McMap. All rights reserved.