I'm trying to draw some lines onto a MKMapView like in this example. But somehow the lines are not being drawn in my iPad app though it's pretty much the same as in the example. Are there some kind of common pitfalls I should think about? It's been driving me nuts for the last two days.
Thanks
–f
...
When you start a SplitViewController-based project for the iPad, it creates a DetailViewController. In DetailViewController.h, it declares the interface as normal:
@interface DetailViewController : UIViewController <UIPopoverControllerDelegate, UISplitViewControllerDelegate> {
UIPopoverController *popoverController;
UIT...
I have created a string that depends on what the user inputs into the textfield:
NSString *book = [[NSString alloc] initWithFormat:@"%@%@", bookTitle.text, afterbook];
Then this string is part of a bigger string:
NSString *msg = [[NSString alloc] initWithFormat:@"%@%@%@%@%@%@%@%@%@%@%@%@%@%@", lastname,
firstname, secondfirstn...
I have developed an application for iPhone devices, the application works perfectly both in simulator and devices. Now I have tried to run the application on iPad (both simulator and real iPad), the application appears but my custom carousel object is not showed... there are no error in the traces but the object is not showed in the scre...
I am loading an existing html document in a UIWebView with iOS 3.2 on an iPad. After the HTML loads I run the following code to insert jQuery into this document:
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
NSLog(@"load complete");
if (webView == self.contentView) {
[self.contentView stringByEvaluatingJavaScriptFromString:
...
I want to make iphone apps but do i really need to learn objective c ?
I love Languages like Ruby, Python and PHP. Is it really worth me spending my time learning objective c ( i understand i have to learn c first)? Any advice, help, tips tricks would be greatly appreciated.
Thank you in advance ;-)
...
Can someone answer this definitively? It seems that sometimes changing the frame of a UIImageView resizes its image and sometimes it doesn't.
I have loaded an image and created a UIImageView with it, sized about 100x100. Doing the following has absolutely no effect:
myImageView.contentMode = UIViewContentModeScaleAspectFit;
myImageView...
Hi,
I have a window with a UIView and a transition to another UIView. But when I do the transition, the window to transition to is displayed in portrait, and after the transition is finished, it goes to landscape.. But I want the UIView to be in landscape BEFORE the transition because otherwise the screen looks f*cked up because the bac...
Hi , iam trying import an image from photos library but when i press the import button program crashes and received SGIBART !! but my code works fine on iPhone why ?
here is my code :
.h :
@interface CameraViewController : UIViewController <UIImagePickerControllerDelegate ,UINavigationControllerDelegate> {
UIImagePickerController...
Hi there,
I've been doing my coding with Xcode 3.2.3
I've recently upgraded my iPad OS to 3.2.2.
Trying to run a provisioned development build from xcode on my iPad, I'm told:
The version of iPhone OS on “User’s iPad” does not match any of the versions of iPhone OS supported for development with this installation of the iPhone SDK. Pl...
This is my first stab at creating two targets within one project for iPhone and iPad.
My question is, if I save an array to NSUserDefaults, and the iPhone syncs with iTunes, and then I sync the iPad, will the iPad version have access to the array synced to it?
...
Is there some library that provides a UIView/UIViewController similar to the iPad popover on the iPhone? I'm just talking about a temporary view that appears on top of the current view, and does the nice transitions that a UIPopoverView does on an iPad.
...
I have been playing with the most excellent GrooveMaker - http://www.groovemaker.com/home - on iPad and marveling at how well the graphics sync to the audio. I will be building a imaging app where I need music to drive short animated loops. Can someone suggest what GrooveMaker might be doing and how that might be applied in a more genera...
For an iOS application I'm making I need to show groups of elements grouped together according to their type, and different groups of types separated from each other in a nicely done layout.
I thought of using an undirected graph, with the grouped nodes all pointing to each other in a sort of circular reference, and then each group as ...
Are there any known pitfalls to avoid when storing user passwords in the Keychain? I am planning to give users the ability to require a password in order to access my iPad app. I have basic read and write of a string to the Keychain working. I just want to make sure that I don't allow them to get into a scenario that they lock themselves...
I hope this has a technical (rather than a religious) answer, but I wonder if I should use Objective-C or C++ to create an OpenGL ES Application on the iPad?
As the ultimate goal would be to compile it on Windows and OS X as well, I'm inclined to use C++ (and only use ObjC for the stuff that I have to: App Delegate etc.), but I have zer...
I have been trying to solve this bug for 2 days straight and can't seem to find the problem.
I sub-classed a standard ViewController like so:
@interface ToolbarVC : UIViewController {
IBOutlet UIButton* button1;
IBOutlet UIButton* button2;
IBOutlet UIButton* button3;
IBOutlet UIButton* button4;
}
@property(nonatomic, retain) IBOutl...
Hi all,
I have a UITableView and its data gets refreshed from a server connection. For the UITableViewcell, I have layout some labels across the row. So it can consider as a grid with UILabels(total no of labels = table rows * table columns).
When the data gets refreshed I have added an animation for the UILabel to highlight the table ...
Hi,
In a UIWebView (multi-touch enabled) I got a page with two divs (div1 and div2), each of them having registered for the touchstart and touchend events. Everytime they are receiving touch events, I am dumping the content of:
event.touches: contains all current
touches
event.targetTouches:
contains touches relevant to the
given tar...
Hi, I want to write a function in my iPad App, which allows me to stream the music choosen on iPad to the connected Game-Interfaces (iPod, iPhone...) via bluetooth. Does anyone knows a simple solution or maybe wants to share some sample code?
Thanks for help!
...