cocoa-touch Questions

16

Solved

I wanted to know when a text is wrapped by the frame of the text view is there any delimiter with which we can identify whether the text is wrapped or not. For instance if my text view has a width...
Tideway asked 29/4, 2011 at 20:58

4

Solved

I wonder if I can test landscape view using simulator?
Geelong asked 24/1, 2009 at 5:16

4

Solved

So I'm using ARC in my project and when I add an AVPlayerLayer it works just fine and dandy, but when I pop the UIViewController from my UINavigationItem the video continues to play in the backgrou...
Aletheaalethia asked 9/11, 2011 at 23:16

11

Solved

I was wondering how to limit the amount of LINES (not characters as asked in other questions) a user can enter when editing a UITextField. Ideally, I would like to limit the input to max. 10 lines...
Leptophyllous asked 7/3, 2011 at 21:58

12

Solved

I am trying to manually import and use the Firebase framework in my iOS application. I am starting off with the basic bare minimum Analytics framework (then I'll add the rest of the frameworks). I...

2

I have a connection in a thread, so I add it to the run loop to get all data: [[NSRunLoop currentRunLoop] run]; [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopM...
Moultrie asked 25/4, 2013 at 10:5

5

Solved

I've got an app that exports an AVMutableComposition into a .mov file, and I'd like for the user to see the status of the export with a progress bar the same way that you would if you sent a text m...
Continent asked 18/6, 2012 at 20:46

13

Solved

Presenting a view from a UIAlertController moves the alert to a buggy position at the top-left corner of the screen. iOS 8.1, device and simulator. We have noticed this in an app when we attempt t...
Humfrey asked 19/11, 2014 at 23:24

15

Solved

In Objective-C we can get device width and height by using following code : CGRect sizeRect = [UIScreen mainScreen].applicationFrame float width = sizeRect.size.width float height = sizeRect.size...
Thermit asked 6/6, 2014 at 15:0

6

Solved

I'm looking for a clean example of how to copy text to iOS clipboard that can then be used/pasted in other apps. The benefit of this function is that the text can be copied quickly, without the st...
Libna asked 10/7, 2014 at 6:58

12

Solved

I would like to check if a NSDate is before (in the past) by comparing it to the current date. How would I do this? Thanks
Violaviolable asked 7/11, 2014 at 18:9

3

I added a modal using AGWindowView. Inside the modal view (built using IB), there is a textfield. The textfield has been connected to an outlet. This doesn't work: - (void)viewDidAppear:(BOOL)ani...

4

To discover whether an AVAudioPlayer object is playing, I can simply use the isPlaying property: if audioPlayer.isPlaying { // ... } If the audio player is not playing however, how can I distin...
Rettarettig asked 28/9, 2016 at 10:31

5

On top of an existing view I want to: a) display a screen to the user b) then send an SMS c) display another screen to the user. For a) I am doing this: [[UIApplication sharedApplication].delegat...
Hussar asked 23/4, 2012 at 21:11

11

Solved

I have a variable fileData of Data type and I am struggling to find how to print the size of this. In the past NSData you would print the length but unable to do that with this type. How to print...
Machellemachete asked 10/3, 2017 at 15:52

6

Solved

Can anyone explain for what is NSRunLoop? so as I know NSRunLoop is a something connected with NSThread right? So assume I create a Thread like NSThread* th=[[NSThread alloc] initWithTarget:self ...
Jaunita asked 23/8, 2012 at 12:7

14

Solved

I need to display an email address on the left side of a UIButton, but it is being positioned to the centre. Is there any way to set the alignment to the left side of a UIButton? This is my current...
Diffractive asked 4/5, 2010 at 11:56

38

Solved

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the...
Geothermal asked 8/8, 2012 at 10:47

6

Solved

Is there a easy way to hide it? I use the user location, but I don't want to show the blue dot. How can I hide it? -- edit-- Am I using something wrong? @interface ALMapaViewController : UIViewC...
Genus asked 2/5, 2012 at 2:56

2

Solved

In one of my iPhone projects, I have three views that you can move around by touching and dragging. However, I want to stop the user from moving two views at the same time, by using two fingers. I ...
Linoleum asked 9/5, 2009 at 13:33

6

Solved

There is no main() method in swift. The program must start the execution from somewhere. So what is the entry point of swift code execution and how is it decided?
Danseur asked 8/6, 2014 at 11:30

5

Solved

I have an iOS app which needs access to the Contacts picker view controller in order to allow the user to select a contact property such as email address/ telephone numbers of imessage email addres...
Monongahela asked 11/10, 2015 at 12:32

25

Solved

Is there a way to make a UIScrollView auto-adjust to the height (or width) of the content it's scrolling? Something like: [scrollView setContentSize:(CGSizeMake(320, content.height))];
Garnishee asked 31/5, 2010 at 14:54

11

Normally on each tab of a UITabBar you have a small image and a title naming the tab. The image is positioned/centred towards the top of the tab to accommodate the title underneath. My question is:...
Traduce asked 29/4, 2013 at 17:57

9

Solved

I want to be able to debug C structures without having to explicitly type every property that they consist of. i.e. I want to be able to do something like this: CGPoint cgPoint = CGPointMake(0,0)...
Tropaeolin asked 15/2, 2009 at 2:28

© 2022 - 2024 — McMap. All rights reserved.