cocoa-touch Questions
14
Solved
UIView and its subclasses all have the properties frame and bounds. What's the difference?
Urnfield asked 31/7, 2009 at 0:7
14
Solved
I want to alter the anchorPoint, but keep the view in the same place.
I've tried NSLog-ing self.layer.position and self.center and they both stay the same regardless of changes to the anchorPoint. ...
Frunze asked 28/12, 2009 at 4:49
9
Solved
I am using a UISegmentedControl inside a UIToolBar as button. I can't use a normal UIButtonBarItem, because I need to set the tintColor and support iOS 4.3.
So I'm using following code:
UISegmente...
Sclerenchyma asked 19/11, 2012 at 16:19
30
Solved
Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController to its UIView via [self view] but I was wondering if there is a reverse reference?
Ulrich asked 27/8, 2009 at 11:22
10
Solved
I've tried sending [UIProgressView setProgress] negative values, and that doesn't work.
Is there some other way to get a progress bar that fills from the right-hand end?
Sixtyfourmo asked 23/4, 2011 at 19:17
27
Solved
I am using MKMapView and have added a number of annotation pins to the map about a 5-10 kilometre area. When I run the application my map starts zoomed out to show the whole world, what is the best...
Busterbustle asked 13/1, 2011 at 13:40
3
Solved
Hey there, I'm trying Multitasking in the Simulator (I only have a 2nd gen iPod and an iPad) and I'm still having some problems. My testing methods look like this:
- (void)applicationDidBecomeActi...
Lorielorien asked 20/11, 2010 at 14:59
28
Solved
I have a UIImageView inside a UIScrollView which I use for zooming and scrolling. If the image / content of the scroll view is bigger than the scroll view, everything works fine. However, when the ...
Necropsy asked 22/8, 2009 at 16:55
15
Solved
I have a cell that I am inserting to the top of a UITableView. How can I make sure that when the user clicks on the cell, it doesn't show the blue selected indicator?
San asked 14/4, 2010 at 22:34
12
Solved
Is it possible to change the corner radius of UISegmentedControl? I have tried the following approach which we use to change a UIView's corner radius.
self.segmentedControl.layer.cornerRadius = 15....
Reposition asked 26/4, 2014 at 23:30
3
I'm trying to display multiple locations in MKMapItem. I am getting those locations from a CLGeocoder, unfortunately it only accepts one location. Even though I pass in an NSArray it just returns o...
Ambler asked 7/1, 2013 at 12:12
9
Solved
I have several .png images (ETA: but the format could also be JPEG or something else) that I am going to display in UITableViewCells. Right now, in order to get the row heights, I load in the image...
Linlithgow asked 11/10, 2009 at 18:2
3
Solved
A segment can only have an image or a title; it can’t have both. There is no default image.
So says Apple in the UISegmentedController Reference.
Has anyone come up with a generalized solution...
Axinomancy asked 4/9, 2012 at 21:42
4
Solved
I have a UIButton on a form, and want to put it in a disabled state when the form is incomplete. However, I still want to be able to detect if a user attempts to press the button even in its disabl...
Adonai asked 9/9, 2014 at 22:11
38
Solved
I'm using Swift for programing with iOS and I'm using this code to move the UITextField, but it does not work. I call the function keyboardWillShow correctly, but the textfield doesn't move. I'm us...
Entomophilous asked 5/9, 2014 at 19:57
22
Solved
I know that I need to tell my UITextField to resign first responder when I want to dismis the keyboard, but I'm not sure how to know when the user has pressed the "Done" key on the keyboard. Is the...
Roughcast asked 8/11, 2008 at 3:47
16
Solved
The iPad does not have a "Numpad" keyboard like the iPhone/iPod does.
I'm looking to find how I can restrict the user's keyboard to only accept values 0 through 9.
I would imagine using UITextFie...
Brunson asked 17/10, 2012 at 23:9
11
Solved
I'm developing an iPhone app. In a label, I want to show an user's first letter of the name uppercase. How do I do that?
Dietetic asked 26/1, 2012 at 17:8
2
I’ve got a custom NSLayoutManager subclass I’m using to draw pill-shaped tokens. I draw these tokens for substrings with a custom attribute (TokenAttribute). I can draw no problem.
However, I need...
Leix asked 29/12, 2015 at 3:35
23
I have a UITableView running under iOS 8 and I'm using automatic cell heights from constraints in a storyboard.
One of my cells contains a single UITextView and I need it to contract and expand ba...
Extine asked 31/7, 2014 at 12:55
24
I am using Xcode 6,
1) Firstly I am creating a dynamic library (CoreLibrary). This library contain RequestPoster.h file.
2) Then I create a Cocoa Touch Framework and added this dynamic library (C...
Loredo asked 5/1, 2015 at 9:22
5
Solved
I'm trying to cut an transparent square in a UIImage, however I honestly have no idea where/how to start.
Any help would be greatly appreciated.
Thanks!
Modal asked 4/5, 2014 at 3:4
8
Solved
Seems like a simple thing but I can't seem to find a way to do it.
It would be great to see a couple different methods.
Matador asked 5/4, 2010 at 17:10
13
Solved
I've already seen two similar questions to mine, but the answers for those questions do not work for me. I have an old project with a list of countries manually typed out inside a set of square bra...
Katerine asked 10/1, 2015 at 11:0
3
I have been working on a NSStreamDelegate, I have implemented call back, I have initialized the input and output stream ilke this...
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
CF...
Traditionalism asked 26/9, 2012 at 5:19
© 2022 - 2024 — McMap. All rights reserved.