I need to get, is a character already in the range. The character string is of type NSMuttableString.
For example, I have a string of "52.648" and I need to know is a "." symbol is already in the string. How can I do it?
...
Hi everyone,
I created a UIScrollView / UIPageControl .xib scrolling between 12 images. At the bottom of the .xib is a "Submit" button that would save the value of the scroll view in a web service.
How can I get the "submit" button to grab that value?
Thanks in advance!
...
My app is retrieving text from a web service in chunks. I am displaying the formatted text using a UIWebView. So far so good.
My problem is as each chunk arrives, I need to refresh the web view with the new content. I am using KVO to observe changes in the text, and when the text changes I'm calling
[self loadHTMLString:self.log.text b...
I have a problem adding libs for zip extraction to my iPhone app.
I decided to use SSZipArchive. It uses minizip.
After following the instructions:
1 Add SSZipArchive.h, SSZipArchive.m, and minizip
2 Add the libz library to your target
I still get errors:
Symbol(s) not found.
I tried adding -lz to Other Linker Flags an...
Using Objective C - I want to loop through an XML tree and display the full XML content at each instance of a specific node matching with a particular element name.
As an example - I am looking to get the XML (represented as an NSString) within each instance of element b. I can get the value if there is only a string in element b, but ...
Hi,
I have a navigation that loads a ViewController (containing a mobile website) like
[self.navigationController pushViewController:webVC animated:YES];
And in webVC, I have a back button that is like
[self.navigationController popViewControllerAnimated:YES];
If I click around the mobile website that is contained in webVC, it...
I'm looking for a Cocoa UI widget for timeline/graph editing (Like the graph editor in After Effects, or the Timeline patch in Quartz Composer), and I haven't found anything similar.
Any suggestions? I was hoping to avoid reinventing the wheel on this one :)
...
How to add new button into virtual keybroad of iphone ( keybroad appear when you touch UITextField)?
...
Hi Guys,
If I have the following NSManagedObject, how can I get the average of number1 and number2.
@interface Log : NSManagedObject
{
}
@property (nonatomic, retain) NSNumber * number1;
@property (nonatomic, retain) NSNumber * number2;
Thanks :D
...
I was wondering if anyone knows of any good open source app templates out there.
I've been noticing that I commonly use a few open source projects in every app that I write, like appirater, flurry, in app settings kit, etc.
Does anyone know of any app templates out there that use any of these already?
Thanks!
...
I am a newbie with iphone programming. I need some help with this code.
I found what I needed here-
http://stackoverflow.com/questions/1072848/how-to-check-if-an-nsdate-occurs-between-two-other-nsdates/
But I have no idea how to use this block of code.
+ (BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endD...
Hi there,
I've got a class that wraps around an NSMutableSet object, and I have an instance method that adds objects (using the addObject: method) to the NSMutableSet.
This works well, but I'm smelling a performance hitch because inside the method i'm explicitly calling containsObject: before adding the object to the set.
Three part ...
Hello,
In C++ there is a template method idiom when base class implements all its algorithms but factors out some tiny little differences (usually having to deal with data formats, etc) for subclasses to implement in the form of protected virtual methods that are not accessible to hierarchy clients.
What is the most natural way to exp...
Hello! I have a class that takes many arguments to create. It’s a sort of an audio processor that needs a sample rate, sample resolution, number of channels etc. Most of the parameters have sane defaults. And most of them should be only settable in the initializer (constructor), because it makes no sense to change them afterwards. I do n...
I have a C# project I'm intending to port to Objective-C. From http://stackoverflow.com/questions/422138/regular-expressions-in-an-objective-c-cocoa-application, it looks like there's a confusing variety of Regex options but I can't see anything about a way of doing a replace with callback. That is, the equivalent of the C# MatchEvaluato...
I need to develop an rss parser with a tableview as the first view and detail view as we select a row in table.
But the thing is, i need to group the feeds in table view based on publishing date and titleForHeaderInSection as the publishing date. That is there should be many sections of rss feed based on date.
With each feed there is ...
Hi!
I have recently published a new app in the appstore. It was approved, but I am having a bit of trouble getting in to the top lists for the category (Entertainment). Is it it possible to change the category to a less "ambitious" category?
It doesnt look like I can do it in Itunes Connect, and the developer guide states that the info...
The following seems simple enough. There's a superclass with an ivar, and a subclass which accesses the (@protected) superclasses ivar:
// Testclass.h
@interface TestClass : NSObject {
NSString *testIvar;
}
@end
//TestClass.m
@implementation TestClass
@end
//TestSubclass.h
@interface TestSubClass : TestClass {
}
@property (no...
Hi, Im tryin to make a mapview where I can get a location and its coordinates then send it to another view.
I tried to use didSelectAnnotationView to send the information.
But for some reason I'm not getting into the didSelectAnnotationView method.
Can someone tell me?
Or if I am doing something wrong. What method should I use?
thanks...
Hello Developers, I 'm new to programming with objective C. I try to read the argb data
from an image and then display this image. It works for landscape images, but doesn't for portrait images. Here is the code I use.
//Read the data
CGImageRef inImage = dispimage.CGImage;
CGColorSpaceRef colorspace = CGImageGetColorSpace(inImage);
CGC...