Advertise here




Advertise here
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

RLScott @ @ @ @

About

Username
RLScott
Joined
Visits
821
Last Active
Roles
Tutorial Authors, Registered Users
Points
108
Posts
1,667
Badges
13

Replies

  • I found in Stack Exchange a posting that said this is a bug that happens when a UISearchController is deallocated without having been activated, and my testing verifies that if I activate the search bar (and therefore load its view) then I can deall…
  • Update: After an hour, one of my "good" uploads finally got through "Processing" and I was able to submit the update.
  • RickSDK wrote: » just a guess, but are you using different provisioning profiles for both? (ad-hoc vs App Store) maybe that's why it doesn't see them as the same project? Well, by necessity the app store version uses an app store signing and …
  • Never mind. I did it the long way, and it was not that hard after all. I patterned after this reference to create a custom subclass of UITableViewCell, defined by a NIB file, that contained my custom subclass of UILabel instead of UILabel. That…
  • BrianSlick wrote: » I'm not entirely sure what you mean by #3. Can you give an example? Referring to "Contacts", if you have a name that you entered with a single space between two words and you try to search for it by inadvertently typing tw…
  • Once you start receiving touch events for the UILabel you can look at the X and Y coordinates of the Touch Event to decide which ones are in the rectangle that you want to define as the "button". Then you can ignore touch events that are not in the…
  • Are you sure you mean UITextField and not UILabel? UITextField already has a defined behavior for touch events, and that behavior is incompatible with button action. UITextFields are for the user entering text, so when the user touches anywhere in…
  • mehtaapplications wrote: » RLScott wrote: » There never was any doubt that this method is being called. The reason the image is on the screen is not changing is that the image associated with this instance of the view controller is not on the…
  • mehtaapplications wrote: » OK, so I think calling the method from another class is working because my log statements are getting called. However, the image is not getting changed. I'm not sure why: -(void)imageChangeTo:(NSInteger)newWeapon { …
  • mehtaapplications wrote: » I am very confused by what you guys are trying to say as I think I am only creating one object of CreateAClassViewController in my second class in the .h file and allocating it in the viewDidLoad method and then using it…
  • mehtaapplications wrote: » ebender001 wrote: » By creating a new instance of CreateAClassViewController, you now have more than one of those objects - the newly created class variable is not pointing to the original object. Pass the original …
  • jgoure wrote: » You can write a function that increases a variable by 1 every second. Then use SKLabelNode to display the integer. So on update have it check current time by last update time. If it's greater than 1 second then increase the inte…
  • tobban2 wrote: » RLScott wrote: » No, don't use another thread and don't use NSTimer. Instead use: NSDate *startDate = [NSDate date]; //..when the game starts.. NSDate *endDate = [NSDate date]; //..when the game ends, or when user clicks…
  • No, don't use another thread and don't use NSTimer. Instead use: NSDate *startDate = [NSDate date]; //..when the game starts.. NSDate *endDate = [NSDate date]; //..when the game ends, or when user clicks.. NSTimeInterval gameTime = [endDate t…
  • highlandcoder wrote: » Hi guys. What i mean by not accurate enough is that it is supposed to call every 0.1 seconds but that fluctuates quite a lot. For example, it sometimes calls every 0.14 seconds and then it will call every 0.8 seconds. I thin…
  • highlandcoder wrote: » Hi guys... I'm back again. I am trying to call a method every 0.1 seconds for a second without using a timer as the timer isn't accurate enough. I have tried 'for' loops but I can only stop them when my int reaches a cert…
  • esko918 wrote: » @RLScott‌ Well i know i can still support it, but my question is regarding should I even support iOS 5.0. Since iOS 6.1 can run on all iPhone devices from the 3GS and above. Do I really need to do it? Not everyone can afford to bu…
  • Just because the simulator no longer runs iOS 5 does not mean you can't support it. Just make sure you have have some iOS 5 device to test on.
  • RickSDK wrote: » since you don't actually even want a random number, why not simply write your own function that iterates through numbers of an array? don't use rand() at all. You say you want to get the same numbers in the same order. That should…
  • zeolite wrote: » My understanding of rand() is that it uses a formula of the format: x1 = ( ( x0 * m ) + c ) % RAND_MAX That is just one of many possible implementations of rand(). I doubt that iOS uses it. But you could find out empi…
  • RickSDK wrote: » if you are getting a speed of -1000000, then something is wrong with your code. Its not a matter of storing it in a bigger variable. Not necessarily. When a double precision (8 byte) floating point number is pushed as a para…
  • CoreLocation.speed is already a double. Assigning it to an intermediate double like "speed" does not make any difference. The problem is your "%d" is not for doubles. It is for integers. The letter "d" stands for "decimal", not "double". When t…
  • Duncan C wrote: » How do those empty methods make any difference in app behavior? The NSlogs verified those methods were being called when I swipe up or down. The eventual app looks more like this. My subclass of UILabel has a delegate prop…
  • ..Even better, I made my custom control a subclass of UILabel, so now I don't even have to do any custom drawing. I have a label that has adjustable behavior in VoiceOver.
  • OK, I got it working. Here is what it takes. I have a subclass of UIView. The implementation of that subclass contains: - (void)accessibilityDecrement { NSLog(@DEC); } - (void)accessibilityIncrement { NSLog(@INC); } An instance of…
  • Duncan, Thanks for your suggestions. Yes, I would like to suppress the automatic reporting of the VoiceOver focus completely. I did find a notification I could use if I did want to wait, though. That may come in handy later. But based on some…
  • You should not even think about an actual restart of your app. You should think about what such a restart means in terms of the state of your app. Then take whatever action is required to put that state back in its original state. For example, if…
  • That is already about as fast as you can get. Do some testing and see if that code has noticeable performance problems before wasting time looking for something faster.
  • You get your ranking the same as any other paid app - by getting lots of people to buy it and to love it so they give great reviews. Why do you think your app deserves a short-cut? Just because you had high rankings as a free app that does not mea…
  • I've done layouts in code too, but graphical layout is often so much more intuitive. Anyway, I solved my problem by turning off auto-layout. I don't know how it got turned on - I've never used it before. But it caused all sorts of things, like bu…
  • This problem has been solved. It turns out that the suppression of voice-over only occurs when the AudioSession category is set to "record". I guess they do that to prevent voice-over from making noise that would be recorded. But when I set the A…
  • I haven't tried it yet, but I just found what I think will be the solution for me: UIAccessibilityAnnouncementNotification
  • What is the reason you want an alternative to the massive switch statement? Are you worried about performance? A massive switch statement is quite fast. The correct case will be found in just a few microseconds. As Duncan said, it might be the m…
  • Thanks. I will pass that advice on to my customer.
  • OK, now I find out that my customer does not remember his password for the old Apple ID. Does Apple provide any way for a customer to reestablish his credentials in iTunes if he does not remember his password? Keep in the mind that the old Apple I…
  • Maths library functions include primitive functions like sine, cosine, square root, logarithms, etc. Derivatives and integrals are not primitive functions. There is no generic algorithm for doing integration, for example, even though there are spe…
  • Thanks Duncan. I found the problem. First I looked at iTunes Connect and there was a crash log waiting for me. So I downloaded it, symbolicated it, and found the line number in the source file where the exception occurred. It turns out it was an…
  • A separate thread has problems in that it cannot do anything directly with the user interface. It needs to use performSelectorOnMainThread. But if you want to avoid the complications of creating a separate thread, restructure your task from being …
  • Remove the extraneous inside quotes in your format string so it does not appear as a concatenation of strings but is one string literal. You only need two quotes — one at the beginning of your format string and one at the end.
  • The naming of such files should have something to do with how you expect to find them again when you need to read them. If there is nothing you need the file name to do other than be unique, you could use the current time of day as a time stamp to …
  • Doolali wrote: » Sorry and another thing that I neglected to mention, is that each timer is occurring in a table view cell. ..then is it possible that "self" in the tick handler is a table view controller and not the view controller that know…
  • Yes, there are all sorts of race conditions when both threads write to a variable. But if only one thread sets a variable and the other thread merely reads it, there is much less that can go wrong (I thought). In my case I have an app that sets a …
  • I don't see how there could be an API for that. If there were, then what would that API return when you run the app on your development device before the Apple ID has even been defined?
  • TeamDire = PlayerSlot & 0x80; position = PlayerSlot & 7;
  • Ive tightened the log statements around where the _y value is incremented with the yvelocity like so NSLog(@"y before %.20f", _y); NSLog(@"yvel_____ %.20f", yVelocity); _x = _x + xVelocity; _y = _y + yVelocity; …
  • What piece of data then prevents someone else from impersonating me? The fact that only you can log in to your iPhone Developer's account and download a certificate and a provisioning profile. So guard you password well, or else someone could imp…
  • I ran into the same problem here. I've got a Mac Mini which I bought in january 2009 and on the Mountain Lion technical specifications it says the supported models are, amongst others, "Mac Mini's from begin 2009" (btw what is that, january or febru…
  • Change ALPHA = 0.05 to ALPHA = 0.10 to cause the responsiveness to be approximately doubled.
  • Re-download the provisioning profiles that reference those devices and drag and drop them to Xcode.
  • The array as you have defined it is part of the myClass object. It has no life of its own. Using a pointer to that array does not creat any new copy or allocate any new memory. So nothing you have shown so far can cause memory leaks. By the way, …