Using Objective-C on my iPhone, is there a built-in method for NSString that finds a string appearing BETWEEN 2 other stings?
Search "my dog is my cat's best friend"... and return everything between "dog" and "best".
Or will I have to write my own? Any good ideas on where to start?
Thanks.
...
I have a general question about objects, memory, and retaining.
I am not a complete newb (I have apps for sale on the iTunes Store) but something must have slipped past me. I work with the Google Docs API, and yesterday I was downloading a spreadsheet feed, and enumerating the results, namely, the Spreadsheet Record Feed.
After enumer...
We are a .Net shop currently developing a iPhone app that requires the app to call a WCF web service. Our WCF Services are secured with a x509 certificate for authentication purposes.
I have been searching the internet for an example on how to do the following:
Deploy a certificate with an iPhone app.
Use that certificate in a web se...
For a custom UIView I've implemented, I want to display some graphics in multiple CALayers that are added as subviews of my UIViews layer.
I cannot use my UIView as the delegate for the sublayers. A UIView may only be the delegate for one layer and that is the layer the UIView already has from the get go. Since I also didn't want to sub...
I have a CoreData model with 4 entities.
Model screenshot -> http://img96.imageshack.us/img96/7857/screenshot20100209at182.png
State
-StateName
Location:
-locationName (attribute)
-locationDescription
-locationActivities (relatinship)
-state (relationship)
LocationActivities:
-location (relationship)
...
I have an iPhone app, it has two separate MKMapView components in different views, however, many of the actions I will perform with the two views are the same. How do I write the methods once but use them in both view controllers?
An example is I have a button which is disabled in both views until the user performs a certain action, I ...
I have been asked by many of my family and friends if I could develop applications on the iPhone or iPod touch. The answer I always gave was "sure, if I could get everything I needed." I have discussed this with many friends and we believe that if we can crank out cheap-o fun games and get a million people to buy them for a buck, and d...
Hi all !
I need to replicate the ipod configuration screen functionality, but have no idea how to do it.
Let me explain :
My App has several viewControllers, but only 5 are shown.
When the user hits the MORE tab, it will show all the available Views .
If he clicks on the EDIT button, the screen will show a bunch of tab-bar items, ( ic...
This is probably not as hard as I think it is, but how can I select part of an image? Consider the following example:
The grey area is an image in the PNG or JPG Format, now I want to select the red 80x80 px area from it. The red area should be displayed, the rest not. I have tried numerous approaches:
Make ckipsToBounds of UIImageV...
I need to generate some html from within an iPhone application. Do you have any recommendations on templating libraries to use? A simple Google search is turning up surprisingly empty.
...
Hello,
I have:
BOOL someBoolValue = ... //some code returning BOOL
when I try to invoke:
[self performSelectorOnMainThread:@selector(refreshView:) withObject:someBoolValue waitUntilDone:NO];
I'm getting a warning:
cast to pointer from integer of different size
Any hints on this?
...
I am trying to call a method in my root view controller from a child view controller such that when I change my options they will automatically update the root view, which will in turn update several other view controllers. For the second part I have used notifications, but for this first I am trying to use a delegate because it (so I h...
Please tell me: If I use Core Data in my iPhone app, I have basically two files. The mydatamodel.xcdatamodel file, and then I need an .sqlite file. Apple provides this code snippet:
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
if (persistentStoreCoordinator != nil) {
return persistentStoreCoordinator;
}...
I'm interested in showing a blue dot in my table cells just like the Mail application does for unread emails. My understanding is there is no easy way of doing this except to create the images myself and set the image properties of my cells.
So now I have created two square images, one with a blue dot and another blank image with the sa...
When a button is pushed in one of my app's table view cells, I need to push a certain view controller onto the navigation stack.
This could be done by using an instance of NSNotification to inform the table view's controller of the button press. But that would be awfully heavyweight, especially since selections in a tab bar in the app ...
Hello,
I am passing an object to a secondary thread using the following code:
(void)login:(id)sender
{
platformMsgs_LoginRequest *loginRequest = [[[platformMsgs_LoginRequest alloc] init] autorelease];
//more code...
[NSThread detachNewThreadSelector:@selector(sendLoginRequest:) toTarget:self withObject:loginRequest];
//more code......
Using a MKMapView I have a pile of annoatations loaded onto it and I want to be able to filter the annotations displayed with a segmented control.
I'm using custom annotations with a type variable so I can tell them apart from one another but I haven't been able to find a way to hide and display a subset of annotation views at will.
...
I want to build a relatively simple version of my site for mobile phones but i will definately need javascript and jquery for many functions.
Googling didn't help to find an answer. How is compatibility of jquery with popular browsers in mobile phones? I am talking for smartphones. For example the deafult browsers for these platforms
W...
Hi everyone,
My app is landscape. I would like to launch the in-app email composer in landscape and restrict it as such. Can anyone advise how to do this? I created a view controller with the proper auto-rotate settings to keep my app in landscape but am unsure how to tell the MFMailComposeViewController to please launch in landscape ...
Suppose I'm doing some iPhone development and I have a subclass of UIViewController. And suppose this view controller has a NSOperationQueue which is created in viewDidLoad and released in dealloc.
Now suppose at some point while this view controller is alive, it adds an NSInvocationOperation to the NSOperationQueue and the operation...