|
|
stackoverflow.com
- 2012-05-20 23:43:22
- Similar
- Report/Block
I used to use XCode the develop my apps and using that; I could create a link up in IB/Storyboard that synthesized this methods: - (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents for when However, no I'm doing it all programmatically (in rubymotion, though not necessarily relevant) and lookin...
|
|
|
stackoverflow.com
- 2012-05-14 09:01:38
- Similar
- Report/Block
Still I couldn't understand completely how these delegate methods are getting called. I have UIViewController UITextFieldDelegate in one class which will call its delegate methods without specifying like textField.delegate = self; But for some different purposes like UIWebViewDelegate we are supposed to enter like webView.delegate = sel...
|
|
|
stackoverflow.com
- 2013-03-21 10:54:41
- Similar
- Report/Block
I have 3 UITextField's which was given dynamically as below if(a isEqualtoString:@"1") UItextField *t=[UITextField alloc]initwithframe(cgrectmake(20,20,20, 20)); t.text=s; t.delegale=self; [[scroll addsubview:t]; if(a isEqualtoString:@"2") UItextField *t=[UITextField alloc]initwithframe(cgrectmake(20,20,20, 20)); t.text=p; t.delegate=self;...
|
|
|
|
stackoverflow.com
- 2012-02-20 07:26:15
- Similar
- Report/Block
Alright, this problem has been driving me nuts. 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 instantly. At first I thought it was problem of loading too many images, or my UITableView, bu...
|
|
|
stackoverflow.com
- 2012-03-03 17:18:34
- Similar
- Report/Block
I have a custom background for an UITextField . But the first 20 pixels of the UITextField are taken by the design. The text should start 30 pixels from the left. I have searched quite a bit, but I couldn't find it. I have seen things like overriding properties, but is that really necessary for something this basic?...
|
|
|
stackoverflow.com
- 2012-08-30 21:39:22
- Similar
- Report/Block
I have a uitextfield subclass and in the init method and setDelegate I have this: - (void) setDelegate:(id)paramDelegate{ [super setDelegate:paramDelegate]; MRAAdvancedTextFieldDelegate *limitedDelegate = [[MRAAdvancedTextFieldDelegate alloc] init]; self.delegate = limitedDelegate; I am using ARC, but this results in a BAD_ACCESS. A...
|
|
|
stackoverflow.com
- 2012-05-13 16:39:31
- Similar
- Report/Block
I am new to IOS development.. I have a requirement in which i need to save a numeric data entered on the UITextField on click of the return button of the IPHone simulator Keypad.. Please help me and tell me that which delegate method is used to save the data entered in he TextField on click of the return button.. Thanks in advance...
|
|
|
|
stackoverflow.com
- 2012-04-10 20:24:09
- Similar
- Report/Block
I am having trouble figuring out how to program delegate method calls across classes in C#. I am coming from the world of Objective-C, which may be confusing me. In Objective-C, I can assign a delegate object inside a child class, to be the parent class (I.e., childViewcontroller.delegate = self; ). Then I can to fire a method in the dele...
|
|
|
stackoverflow.com
- 2012-03-22 05:33:11
- Similar
- Report/Block
I am having UIAlertview with UITextField in that.Mine is iPad application -(void)showAlertToAddLink alertToAddLink =[[UIAlertView alloc] initWithTitle:@"Loose Sockets" message:@"" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"ADD", nil]; alertToAddLink.tag = 2; alertToAddLink.alertViewStyle = UIAlertViewStylePl...
|
|
|
stackoverflow.com
- 2013-05-10 12:51:54
- Similar
- Report/Block
I am trying to follow this question to setup a delegate for a login sequence:- How do I set up a simple delegate to communicate between two view controllers? In my application I have a Main View (MESHomeViewController). I also have a login structure as follows: MESLoginNavController With a root view controller of MESWelcomeViewController...
|
|
|
stackoverflow.com
- 2012-11-09 07:03:35
- Similar
- Report/Block
I am working on app and simply editing the cell text field and at finish editing, I am trying to update coredata but app get stack and some time it give SIGSTOP and sometime it says unable to allocate more memory kinda error, please help me with this. - (void)textFieldDidEndEditing:(UITextFiel d *)textField if ((textField.tag - 999) > 0)...
|
|
|
stackoverflow.com
- 2012-03-12 16:53:19
- Similar
- Report/Block
This is where I call my method (send message): [db saveSiteData:(UITextField) txtSiteID with:(UITextField) txtSTA and:(UITextField) txtSiteDesc and: (UITextField) txtElev ] This is the declaration of the method: - (void) saveSiteData:(UITextField*) txtSiteID STA:(UITextField*) txtSTA desc:(UITextField*) txtSiteDesc elev:(UITextField*)...
|
|
|
|
stackoverflow.com
- 2012-03-17 15:33:02
- Similar
- Report/Block
I am trying to format the number using following methods. which are available in "NsNumberFormatter" but Xcode not recognizing those methods. Its showing error as "Receiver type 'NSNumberFormatter' for instance message does not declare a method with selector 'setHasThousandSeparators'. Getting same error for second method also setHasThous...
|
|
|
stackoverflow.com
- 2012-02-23 10:33:45
- Similar
- Report/Block
i´ve just created my own delegate function using ARC with the latest Xcode version 4.2. I had some error messages, but after finding that post [enter link description here][1], i was able to run my code without problems. Unfortunately my delegate won´t be fired. Here is my code: CVC.h #import "HotSpotContentView.h" @interface ContentViewC...
|
|
|
stackoverflow.com
- 2013-03-01 11:53:57
- Similar
- Report/Block
I have a problem that really drives me crazy. A few months ago i started developing an iphone application , and i needed to have a multiline textField so that the user could write some comments. In the end , because at the time i couldnt find a solution , i found a solution how to use a Text View instead which is by default multiline. In...
|
|
|
stackoverflow.com
- 2012-02-26 06:14:59
- Similar
- Report/Block
I wrote two simple applications: 1. one using anonymous methods, and 2. one using simple methods. Each of the methods above are doing a simple action: int add(int n1, int n2) {return n1+n2} And I call a simple loop that will call the method 10,000 times. The implementation using anonymous methods takes much less time than the...
|
|
|
stackoverflow.com
- 2012-04-03 07:23:46
- Similar
- Report/Block
In a UITextField used for entering decimal numbers I would like to get rid of possible leading zeros (The behavior should be like the one of the Calculator App). Normally this would be rather easy to implement but I just cannot figure out how to restore the cursor position. UITextField has a property SelectedTextRange of type UITextRange...
|
|
|
stackoverflow.com
- 2012-03-30 14:49:08
- Similar
- Report/Block
At the bottom (in AppDelegate.m) you can see my CLLocationManager delegate methods, none of them get called. I'm using a GPX file, but even if the regions do not get entered or exited, the delegate method didStartMonitoringForRegion should be called. SomeOtherClass.m AppDelegate appDelegate = (AppDelegate *)[[UIApplication sharedApplica...
|
|
|
|
stackoverflow.com
- 2012-04-09 04:23:31
- Similar
- Report/Block
I have a UITableView based on a NSFetchedResultsController . To insert a new row into the table, I open up a modal view controller, and I then hit the save button which dismisses the modal view and causes my NSFetchedResultsController delegate methods (willChangeContent, didChangeObject`, etc) to fire, which animates the inserting of a...
|
|
|
stackoverflow.com
- 2012-03-08 07:06:28
- Similar
- Report/Block
I still have Snow Leopard. I have Xcode 4.2 for ios development. Today morning i have upgraded my iPhone and iPad to iOS 5.1 release. But Xcode 4.2 is not detecting my device for testing. I could not find iOS 5.1 SDK image in apple developer site for Xcode 4.2. I don't want to do upgrade to Lion to get XCode 4.3 at this time. Will i able...
|
|
|
stackoverflow.com
- 2012-03-17 00:37:25
- Similar
- Report/Block
I am trying to use NSUserdefaults to save some data from a text field, I want it to be saved when the application quits and loaded when the application starts, however I have run into a wall. The methods that I want to use are all in the AppDelegate, Now I do not understand how to use AppDelegate very well, I have thought of two possible...
|
|
|
|
stackoverflow.com
- 2012-03-22 16:52:07
- Similar
- Report/Block
hm, i have an strange problem... i just wanted to test an app on my ipad but i cant deploy it, because my ipad runs ios 5.1 and in xcode i can only select a deployment target up to 5.0. So, i think i have to install the new SDK for 5.1 - but how? I cant download xcode 4.3.2 (which includes the new sdk) because in the "App store" it says "...
|
|
|
stackoverflow.com
- 2012-09-01 22:47:04
- Similar
- Report/Block
I have a UITextField on a UITableView and I am using a number keyboard however I want it to be dismissed when user clicks on anything but the UiTextField. I have seen several solutions however there appears to not be one definitive answer. For example some talk about gestures and when I implement them they do not appear to work using the...
|
|
|
stackoverflow.com
- 2012-03-27 13:52:01
- Similar
- Report/Block
If I create a delegate which points to the instance method and serializes this delegate. At later point I deserialize this delegate and invoke. If GC runs during this time i.e. before desterilizing the delegate will the delegate be able to invoke method properly? The managed object, whose instance method is pointed by delegate, may be mov...
|
|
|
|
stackoverflow.com
- 2012-03-22 19:04:29
- Similar
- Report/Block
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"HELOOOOOOOO" message:@"Hello how are you today......... a long long text...." delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"Yes", nil]; UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRect...
|
|
|
stackoverflow.com
- 2012-05-29 14:36:23
- Similar
- Report/Block
I have a Xcode project MyProject.pbproj in which a project file project.pbxproj has the property objectVersion = 38; When I try to open it with Xcode, I get the message Failed to load project at '...', incompatible project version. The version of my Xcode is 4.3.2 I'm new to the Xcode and complete Mac OS environment and I do not know w...
|
|
|
stackoverflow.com
- 2012-04-12 09:49:35
- Similar
- Report/Block
I have a UITextField where I want to change the characters using ShouldChangeCharacters delegate method. But when I use the textField obj, it says that does not match with UITextFieldChange... How should I do it in Monotouch?...
|
|
|
|
stackoverflow.com
- 2012-02-19 00:57:53
- Similar
- Report/Block
Before ios5 I was able to access a UIWebView's UIScrollView delegate like this: for (id subview in webView1.subviews){ if ([[subview class] isSubclassOfClass: [UIScrollView class]]) { UIScrollView * s = (UIScrollView*)subview; OldDelegate = s.delegate;//OldDelegate is type id s.delegate = self; } Now, I know that's not the right way...
|
|
|
stackoverflow.com
- 2012-02-23 15:04:52
- Similar
- Report/Block
Like in a sample code for XML parsing I encountered a comment: NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; //Initialize the delegate. XMLParser *parser = [[XMLParser alloc] initXMLParser]; **//Set delegate** [xmlParser setDelegate:parser]; Can somebody tell me the difference between protocol's delegate method...
|
|
|
stackoverflow.com
- 2011-01-29 13:06:39
- Similar
- Report/Block
In my iphone app, I have created some UITextField in scrollView dynamically. And added one button in xib. On that button's TouchUpInside event, I opened UIImagePickercontroller to open photo library and taking selected image on UIImageView. Now when modalview is dissmissed, values in my UITextField disappears. How do I retain the UITextFi...
|
|
|
|
stackoverflow.com
- 2012-07-19 19:20:52
- Similar
- Report/Block
I am developing an iOS application and thanks to Xcode's "output log" I've been able to fix lots of bugs and such. When I run my iOS application without Xcode, sometimes it crashes. However, it is hard to tell why did it crash since my device was not connected to Xcode. So I was wondering, when I run my iOS application, is there an output...
|
|
|
stackoverflow.com
- 2012-03-25 05:07:38
- Similar
- Report/Block
I'm building an app for a blog site. I have a UINavigationController with a UITableViewController as it's root view. I laid this out in a storyboard no problem, but I'm trying to drag an iAd view to the bottom of the screen and xcode will not let me add it. It looks like I have to switch from a subclass of UITableViewController to a subcl...
|
|
|
stackoverflow.com
- 2013-03-23 18:31:01
- Similar
- Report/Block
If I follow any of a number of examples available on the web, I see a common theme emerge with the delegate pattern: myClass.delegate = self; From what I read, delegation is supposed to uncouple behavior, but allow interaction between classes, however, only assigning a single delegate seems to be 100% at odds with this behavior. I have a...
|
|
|
|
stackoverflow.com
- 2013-04-26 11:33:47
- Similar
- Report/Block
I have been using delegation pattern to wrap an object created by a factory in a 3rd party library. Recently, the library added a protected method in the base class and my wrapper class doesn't work any longer. Does anyone have a good solution without resorting to reflection? This is in 3rd party library and in their package, public class...
|
|
|
stackoverflow.com
- 2012-03-26 16:28:47
- Similar
- Report/Block
Ok I am having trouble figuring out how to approach this. I have a UITextField which I add to a UITableView dynamically according to the definitions of a XML file, in the XML file I may specify a list as one of the data types and what I do then is add a UIPickerView that displays the list to the inputView of my specific UITextField. What...
|
|
|
stackoverflow.com
- 2012-03-13 16:52:53
- Similar
- Report/Block
I've a UIScrollView with 'n' number of UITextField(s) & UITextView(s). Text entered in the UITextField & UITextView appear fine in the normal state(scroll view zoom scale = 1). When ScrollView is zoomed in I scale the UITextField & UITextView rects proportionally w.r.t scrollView zoomScale factor. The text in zoomed state appe...
|
|
|
|
stackoverflow.com
- 2011-09-07 11:32:02
- Similar
- Report/Block
I have a UITextField with a placeholder. When the user wants to submit the form and he/she hasn't typed anything in the textfield, I would like the placeholder's text color become red. Here are my questions: Would that go against Apple's User interface guidelines? I don't want my app to be rejected because of such small detail. How I woul...
|
|
|
stackoverflow.com
- 2012-05-15 22:23:54
- Similar
- Report/Block
I have code that successfully uses the synchronous methods to download files (NSData's initWithContentsOfURL and NSURLConnection's sendSynchronousRequest), but now I need to support large files. This means writing it to disk bit by bit rather than having the whole file in memory before writing it to disk, and this means using the asynchro...
|
|
|
stackoverflow.com
- 2013-04-30 13:39:15
- Similar
- Report/Block
In my app, multiple asynchronous calls are used on each UITableViewCell selection as I need to fetch some data on tapping each cell. The data fetching is done in a custom class and in that, I do this to start the connection: NSURLRequest *request = [[NSURLRequest alloc] initWithURL:requestUrl cachePolicy:NSURLRequestReloadIgnoringCa cheDat...
|
|
|
|
cyberforum.ru
- 2012-11-06 08:32:43
- Similar
- Report/Block
Добрый день! Такой вопрос.В UITextField ставлю выравнивание по центру. Но когда нажимаю на UITextField, то курсор сначала оказывается слева, а только когда начинаю печатать, он оказывается в центре. Как сделать так, что он всегда был по центру и не прыгал? Код: UITextField *theField = [[UITextField alloc] initWithFrame: CGRectMake(conten...
|