cocoa-touch Questions
5
Solved
On the subject of associating your iPhone app with file types.
In this informative question I learned that apps could be associated with custom URL protocols.
That was almost one year ago and si...
Guardrail asked 5/5, 2010 at 14:59
3
Solved
Is there any method to get to Manage Subscriptions in settings by clicking a button from my app??
Aparicio asked 15/7, 2011 at 13:3
18
Solved
I have a UITableViewController subclass with sections. The sections are showing with the default style (no rounded corners). How can I set the TableView style to grouped in the code? I'm not using ...
Cookshop asked 17/6, 2009 at 12:24
3
Well the title gives the question away, how can I apply easing to the SKAction node actions in SpriteKit?
I found that this works:
SKAction *moveAction = [SKAction moveByX:moveX y:moveY duration:...
Hurl asked 30/9, 2013 at 13:22
31
Solved
Is there a way to set cornerRadius for only top-left and top-right corner of a UIView?
I tried the following, but it end up not seeing the view anymore.
UIView *view = [[UIView alloc] initWithFra...
Chukchi asked 15/4, 2012 at 23:58
7
Solved
The <video> tags autoplay="autoplay" attribute works fine in Safari.
When testing on an iPad, the video must be activated manually.
I thought it was a loading issue, so I ran a loop checkin...
Bonham asked 19/9, 2012 at 13:48
4
Solved
Is there a way that I can return value for shouldPerformSegueWithIdentifier method from my closure? Or should I do it differently?
override func shouldPerformSegueWithIdentifier(identifier: String...
Herr asked 9/6, 2015 at 16:52
33
Solved
I have the following code...
UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds];
buttonLabel.text = @"Long text string";
[targetButton addSubview:buttonLabel];
[targetButto...
Berate asked 3/3, 2009 at 0:22
3
Solved
In my project, I have multiple empty scrollview (layout with AutoLayout) in multiple view controllers. At run time, views will be add to those scrollview base on user and their desirable content. T...
Phreno asked 3/10, 2014 at 3:29
4
Solved
My UIDatePicker is set to UIDatePickerModeTime but on the apple documentation it says The date picker displays hours, minutes, and (optionally) an AM/PM designation. The exact items shown and their...
Algebraist asked 27/1, 2011 at 22:33
10
I need to localize two keys of info.plist: NSLocationUsageDescription and NSCameraUsageDescription. So I tried to create a new file called InfoPlist.strings and then I localized it, but app always ...
Ixtle asked 12/2, 2014 at 18:5
18
Solved
I am using a instance of UIWebView to process some text and color it correctly, it gives the result as HTML but rather than displaying it in the UIWebView I want to display it using Core Text with ...
Forthcoming asked 18/11, 2010 at 17:38
11
Solved
I have an NSMutableArray that stores mousejoints for a Box2d physics simulation. When using more than one finger to play I'll get exceptions stating
NSArray was mutated while being enumerated
...
Continuo asked 14/4, 2012 at 21:7
7
Solved
I have an NSString with an URL, in this way:
http://someurl.com/something
How would I get someurl.com only?
I've already tried substringToIndex with no luck :(
Thanks in advance :)
Deferral asked 28/5, 2011 at 15:19
7
Solved
I am learning iOS development in Objective-C, and I have found a lot of code examples.
Some of them, though, say that they are only for Mac OS X (not iOS).
Can someone please explain to me what i...
Stacystadholder asked 19/2, 2010 at 16:25
16
Solved
How can I detect a double tap on a certain cell in UITableView?
i.e. I want to perform one action if the user made a single touch and another if a user made a double touch? I also need to know an ...
Yordan asked 23/6, 2009 at 8:9
17
Solved
I want to add an image to a UIButton, and also want to scale my image to fit with the UIButton (make image smaller). Please show me how to do it.
This is what I have tried, but it does't work:
A...
Sharpen asked 8/1, 2010 at 3:34
13
Solved
I am searching for solutions on how to capture a backspace event, most Stack Overflow answers are in Objective-C but I need on Swift language.
First I have set delegate for the UITextField and set...
Poverty asked 8/4, 2015 at 1:25
5
Solved
How can I access the Bundle Seed ID/Team ID/App Identifier Prefix string programmatically? (These are all the same thing as far as I can tell).
I am using the UICKeychainStore keychain wrapper to ...
Kierstenkieselguhr asked 30/7, 2012 at 17:39
5
Solved
I would like to loop through an NSString and call a custom function on every word that has certain criterion (For example, "has 2 'L's"). I was wondering what the best way of approaching that was. ...
Mer asked 23/6, 2012 at 16:14
21
Solved
I need to embed small icons ( sort of custom bullets ) to my UILabel in iOS7.
How can I do this in interface designer? Or at least in code?
In Android there are leftDrawable and rightDrawable for ...
Entwine asked 11/10, 2013 at 12:41
4
Solved
Like in java:
A final class cannot be subclassed. This is done for reasons of security and efficiency. Accordingly, many of the Java standard library classes are final, for example java.lang.Syste...
Timothy asked 19/5, 2010 at 9:32
2
I have an iOS 9 app that plays MIDI-like songs using an AudioGraph. I've set up remote control commands with MPRemoteCommandCenter and info with MPNowPlayingInfoCenter such that the currently playi...
Ashla asked 20/4, 2016 at 20:50
8
Solved
In my iOS Swift app I want to generate random UUID (GUID) strings for use as a table key, and this snippet appears to work:
let uuid = CFUUIDCreateString(nil, CFUUIDCreate(nil))
Is this safe?
...
Natoshanatron asked 26/6, 2014 at 10:35
11
I've been stuck with this problem for days, so I'd be really happy if someone could help.
I'm trying to create a dynamic UITableView, for which I created a custom UITableView subclass and I've crea...
Transfix asked 13/3, 2015 at 15:16
© 2022 - 2024 — McMap. All rights reserved.