cocoa-touch Questions

21

Solved

When dismissing a modal view controller using dismissViewController, there is the option to provide a completion block. Is there a similar equivalent for popViewController? The completion argument...
Vervain asked 15/10, 2012 at 21:36

39

Solved

I'm customizing a UITableView. I want to hide the line separating on the last cell ... can i do this? I know I can do tableView.separatorStyle = UITableViewCellStyle.None but that would affect all...
Incondite asked 19/12, 2011 at 13:5

12

Solved

By default, when you are using the flow layout in a collection view, cells are centered vertically. Is there a way to change this alignment ?
Virgina asked 30/5, 2013 at 13:43

6

Solved

Using the TARGET_IPHONE_SIMULATOR macro results in the same constant values being defined in am application. For example: #ifdef TARGET_IPHONE_SIMULATOR NSString * const Mode = @"Simulator"; #else...
Chichi asked 6/8, 2010 at 21:20

15

Solved

I am using a UITextField with a UIPickerView for its inputView, so that when the user taps the text field, a picker is summoned for them to select an option from. Nearly everything works, but I ha...
Cockroach asked 13/9, 2010 at 10:53

7

According to the docs, CTFramesetterSuggestFrameSizeWithConstraints () "determines the frame size needed for a string range". Unfortunately the size returned by this function is never acc...
Vasyuta asked 25/4, 2010 at 9:2

8

Solved

The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns the position of the UIView in relation to it's immediate superview. I need to determine ...
Ogle asked 23/9, 2009 at 11:23

16

Solved

Let say I have a storyboard that contains UINavigationController as initial view controller. Its root view controller is subclass of UITableViewController, which is BasicViewController. It has IBAc...

8

I have an app which is currently uploading images to amazon S3. I have been trying to switch it from using NSURLConnection to NSURLSession so that the uploads can continue while the app is in the b...
Galilean asked 20/10, 2013 at 15:1

6

Solved

I have two versions of my model Model001.xcdatamodel and Model002.xcdatamodel. These two are in the Model.xcdatamodeld bundle. I also have a Model001to002.xcmappingmodel which is not part of the Mo...
Hagiocracy asked 8/10, 2012 at 13:16

6

Solved

I have the following loop in my viewDidLoad: for(int i=1; i<[eventsArray count]; i++) { NSArray *componentsArray = [[eventsArray objectAtIndex:i] componentsSeparatedByString:@","]; i...
Kushner asked 23/2, 2010 at 13:49

4

Solved

I looked for some code that will help me to get the ip that the iPhone connect with. I find this one: - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NUL...
Rhinoplasty asked 27/3, 2011 at 16:39

10

Solved

I have a UIDatePicker mm/dd/yy. It works fine, but there is one problem: I set minimum and maximum date to it, and when user tries to choose the forbidden day, month or year, the [datePicker date] ...
Parliamentarian asked 7/1, 2013 at 17:11

14

Solved

I've got a UIButton that, when selected, shouldn't change state when being touched. The default behaviour is for it to be in UIControlStateHighlighted while being touched, and this is making me ang...
Robey asked 14/2, 2010 at 2:16

24

Solved

I'm having trouble with my code. I'm trying to move the UIScrollView when I'm editing an UITextField that should be hidden by the keyboard pop. I'm moving the main frame right now because I don't ...
Bio asked 31/10, 2012 at 15:42

18

Solved

I would like to customize the background (and maybe the border too) of all of the UITableViewCells within my UITableView. So far I have not been able to customize this stuff, so I have a bunch of w...
Lechner asked 11/11, 2008 at 17:11

11

Solved

In my app I have a function that makes an NSRURLSession and sends out an NSURLRequest using sesh.dataTaskWithRequest(req, completionHandler: {(data, response, error) In the completion block for ...
Attribution asked 27/7, 2014 at 21:12

33

Solved

I'd like to show the current language that the device UI is using. What code would I use? I want this as an NSString in fully spelled out format. (Not @"en_US") EDIT: For those driving on by, th...
Domiciliary asked 11/10, 2010 at 21:58

6

I have spent almost 8 hours finding out how to jump to a particular page number in UIPageViewController... below is what my project looks like I want to make an app which looks like Ibooks--- I h...
Vainglorious asked 4/7, 2012 at 20:12

5

Solved

I'm trying to create a more generic media controller for several types of streaming media and want to adapt the UI to the type of stream; When it's an on-demand file stream (i.e. a single MP3 fil...
Proposal asked 12/7, 2011 at 15:10

7

Solved

I have a CGPoint called point that is being assigned a touch: UITouch *touch = [touches anyObject]; CGPoint point = [touch locationInView:self]; I want to get the x coordinate value into my con...
Toandfro asked 25/9, 2009 at 10:22

10

Solved

I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unrespons...
Milo asked 17/11, 2008 at 23:7

4

Solved

The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer. So: What's the height of a UITabBar on iOS 8/9/10/11 o...
Elisa asked 28/8, 2014 at 14:5

13

Solved

I'm trying to set the background color of a UITableViewCell to transparent. But nothing seems to work. I have some images/buttons inside the tableViewCell and I would like to make the white groupta...
Titular asked 17/6, 2009 at 16:43

7

If I simply call the push method with: [self.navigationController pushViewController:viewController animated:YES]; then it uses a push animation. How do I change it to use a cross dissolve anima...
Sly asked 8/5, 2014 at 0:3

© 2022 - 2024 — McMap. All rights reserved.