I want to use a MKMapView to display the user current location using the default breathing blue pin and I want to record the user movement at the same time. Is there any way that I could use the GPS manager (not sure if this is a CLLocationManager) the MKMapView uses when we enabled it to show user location?
I know that I can create my...
Hi,
Could somebody show me how to get the x and y position of a UIButton in cocoa?
The button moves on the screen when clicked and I want to use it's current position to position another UIBUtton relative to it.
I've tried using
CGRect rect=[myButton imageRectForContentRect];
The compiler tells me that myButton may not respond to i...
OK, so I'm currently having a play around building an iPhone Web App, in which it displays an RSS feed. I have got it displaying nicely and looking good, but everytime a user clicks on the title of a story, they then get taken to the main site, which I don't want as it's not mobile optimised. The rss feed is a full rss feed, so the who...
Hi,
In my app I'm trying to render text along a path; this is fine for most characters but not for Japanese (or anything non mac-Roman). I've been advised to use [NSString drawAtPoint] which displays the correct characters in my CATiledLayer; however, they dissapear after approximately 5 seconds. In this time I can zoom the layer and th...
For the iPhone (not the simulator),
I'm wondering if canOpenUrl for dialing phone numbers takes into consideration of the following:
Region Format
Carrier
Basically, for example if I have a France number such as:
01 41 68 22 30
I'm unable to dial it on a North American iPhone device running under US/Canada Region Format.
When I ...
I have this code
NSArray *wordListArray = [[NSArray alloc] initWithArray:
[[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@”sowpods” ofType:@”txt”]
encoding:NSMacOSRomanStringEncoding error:NULL] componentsSeparatedByString:@”\n”]];
My question is how can I extract this text and update a label in a Scrollvi...
Hello,
I am trying to understand how to create my own directory tree and access it from my application.
I am doing some kind of learning program and want to create a directory structure like this:
-MyLessonsDirectory
--LessonDirectory_1
---Step_1
---Step_2
---Step_3
--LessonDirectory_2
---Step_1
---Step_2
---Step_3
.
.
and so on
I...
I'm trying to set the size of my background to be a little shorter than the default, creating some space between the cells. This has proven to be difficult. Setting the frame of the background view seems to do nothing:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString ...
Hey,
I ran into a problem. I can't image why that happens, probably you guys can.
I've created a UIBarButtonItem in IB and linked it correctly. A set the property and synthesized it. At the beginning I set the btn disabled (viewWillAppear).
Then I try to add an entry to my mysql db:
NSString *URLStr = [NSString stringWithFormat:@"http...
I am interested in playing HTTP live streaming data from my app. The stream (which I create) is encrypted, and a URL pointing to the AES key is included in the stream index file.
MPMoviePlayer hits this URL for the AES key, when it sees that encryption is enabled.
I would like this URL to be served by https, and for MMMoviePlayer to use...
I have not found any answer to why I cannot add a data model to an existing project. So given the fact that creating a project from scratch using core data for storage does create the data model correctly I am trying to move the entire project into a new project that contains the data model.
No matter how I try to do it at some point it...
My application has a tab bar, and in one tab I have a navigation controller.
I want to find the position of the center of the view that appears between the navigation bar and tab bar, so that I can display a UIActivityIndicatorView right in the middle of the view when stuff happens.
However, I'm getting different values of self.view.bo...
What’s considered ‘best practice’ when saving Address Book contacts in Core Data?
I’m writing an iPhone App, based on Core Data, where I need to save and recall Address Book contacts as part of the data model.
In the UI I plan to present a screen where the user can pick a contact from the current Address Book, create a new contact to s...
i have a tabbar application. here is my code
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[application setStatusBarHidden:YES animated:NO];
[self showSplashView];
}
- (void)showSplashView {
//If i don't use black view it displays white screen thats look so bad...
UIView* blackView = [[UIView alloc] initWithFra...
I can't seem to find any information in the documentation or via Google on this, but if there is something, a pointer to it would be great.
In my app, I have a Thing as a core data class. I intend to have that Thing contain many Items which has a bunch of fields in it, like order and created_date and so forth. However, there are a varie...
I have a UITableView with UITextFields as cells. I would like to dismiss the keyboard when the background of the UITableView is touched. I'm trying to do this by creating a UIButton the size of the UITableView and placing it behind the UITableView. The only problem is the UIButton is catching all the touches even when the touch is on ...
I'm having trouble understanding how this method works.
From the documentation, it specifies:
canOpenURL: Returns whether an
application can open a given URL
resource.
- (BOOL)canOpenURL:(NSURL *)url
Parameters url A URL object that
identifies a given resource. The URL’s
scheme—possibly a custom
scheme—identifies...
The following works without issue:
toolBar.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"window_bkd.png"]];
However, I have similar statements scattered throughout my code and wanted to clean it up using the following statements, which crash on executing the first statement:
UIColor *bkdColor = [[UIColor allo...
Hello,
I am currently developing an iPhone app that will allow the user to upload his high score on facebook and compare his highscore with other friends (facebook users). This gives rise to two questions:
How can I upload the score (an integer) on facebook? I have created the app on facebook and it is possible to send feedstories an...
Hi All,
i have an app that uses the iphone camera and puts an overlay over the camera. However it all works fine and i have managed to rotate the UIView to landscape but their is a 20px gap at the top of the view although i have set the positioning to (0,0,480,320).
starContainerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 48...