I'm trying to find the user's location using:
CLLocationCoordinate2D _location;
CLLocation *userLoc = nil;
if(appDelegate.clLocationManager.locationServicesEnabled){
userLoc = mapView.userLocation.location;
_location = userLoc.coordinate;
}
The problem is that I haven't yet initialized the map so the above doesn't work. Is th...
In the below code becomeFirstResonder not working, only resignFirstresponder working...can anyone please help
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if (textField == txtDate)
{
[txtDate resignFirstResponder];
[txtTime becomeFirstResponder];
}
if (textField == txtTime)
{
[txtTime resignFirstResponder];
[txtAddress be...
How/where in the code does the nib file get related to its *.m and *.h files?
Specifically I'm talking about when you create a new Objective-C class, not using the initWithNibName method.
Wherever this relationship is defined is obviously used by the 'Files Owner' relationship in Interface Builder. I imagine it's a *.plist file somewh...
I am using the FBConnect lib to allow users to post data to their facebook pages. I was successfully able to establish a session and allow a user to post to their wall.
My question is this:
There is a facebook 'logout' button that is suspended in the top left corner of my view after I've logged into facebook. How do I disable or move ...
I'm getting ready to finally deploy my first iPhone app. The app uses SSL to connect to a REST web service. While reading the docs on deploying the app to the app store, I came across some drivel regarding having to go through a 30 - 60 day government vetting process just to ship an app that simply connects to an HTTPS server.
My questi...
Hi,
I can set the edit mode for a while uitableview by calling [tableView setEditing:YES]; But that sets the edit mode for all the rows in a table.
Is there a way to detect what row was swiped an enable the edit mode only for that row?
Thanks
...
I just started getting this error today, seemingly out of nowhere. Any one see this before and know what causes it.
Internal error occurred while creating dependency graph: *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[10]
This happens when I try to build with "iPhone Device 3.x" selected. However, i...
I'm creating a fairly complex iPhone app using Core Data. Up until now, things have been working fine. As the app has been getting more complex, however, a new problem has come up: the first view controller is finishing its viewDidLoad method before the AppDelegate gets even halfway through its applicationDidFinishLaunching method.
The...
Is there a way to use UITabbaritem as a UIButton?
I am trying to make a Tabbar that its items don't change the view. Just want them to do simple actions in the same view controller.
Thanks.
...
I'm having an intermittent problem when I move a UIImageView around the screen using CAKeyframeAnimation. I want the position of the UIImageView to remain where the animation ends when it is done. This bug only happens for certain start and end points. When I use random points it works correctly most of the time, but about 5-15% of the t...
Ever since I upgraded to iPhone SDK 3.2 beta 4, when I try to compile for device I get a warning for most of my libraries (libxml2.dylib, libobjc.A.dylib etc.) saying that it is missing the required architecture arm in file. Checking the libraries with lipo, I see that they all have arm5-7.
Surely someone else had to of run into this.
...
Does anybody know a possibility to center simple pictures within a UIWebview without using hmtl/css?
Thanks in Advance.
...
Hello all,
I need some help here so I will do my best to explain. I have worked on this all day and had no success (just learning!)
I have:
NSArray *getValue(NSString *iosearch)
{
mach_port_t masterPort;
CFTypeID propID = (CFTypeID) NULL;
unsigned int bufSize;
kern_return_t kr = IOMasterPo...
Alright, so I'm starting to learn more about Coco2D, but I'm kinda frusterated. A lot of the tutorials I have found are for outdated versions of the code, so when I look through and see how they do certain things, I can't translate it into my own program, because a lot has changed. With that being said, I am working in the latest versi...
I'm using core data in my app. I have two entities that are related: EntityA and EntityB. EntityA has a property of type "relationship" with EntityB. In addition, both of these entities are defined classes (not the default NSManagedObject). I'm inserting a new object into my data like this:
EntityA *newEntityA = [NSEntityDescription ins...
Possible Duplicate:
How to link to apps on the app store
A few web searches yield all sorts of contradictory advice on linking from an iPhone app to an app on the store. Here are some links that come up, together with comments from testing:
http://itunes.apple.com/us/app/anagramania/id360016055?mt=8 -- works great. But is i...
For one NSString, I have N pattern strings. I'd like to extract substrings "around" the pattern matches.
So, if i have "the quick brown fox jumped over the lazy dog" and my patterns are "brown" and "lazy" i would like to get "quick brown fox" and "the lazy dog." However, the substrings don't necessarily need to be delimited by whitesp...
I have ten buttons that each correspond to a different number. I'm looking to record the order that these buttons are pressed and enter them into an array and then compare it to another array that is static in the app. The check should be done on the Nth button press, where N equals the number of items in the other, static array.
How do...
I'm trying to do something really simple.
I have an image for a button and I'm trying to set it on a custom button in interface builder.
I set the background image accordingly (no case sensitivity problem here).
In interface builder it shows up, but in the simulator or on the device it doesn't appear at all.
Just the button's text will a...
hi all,
in .Net we can use membership provider See Membership provider
Whether there are any equivalent in iPhone or is it possible to access these provider through iPhone API
...