iphone

myView.frame Vs. self.myView.frame

I know it's often advisable to use the @property accessors, and I know it's important to use self.myView = x instead of mView = x, but: Isn't myView.frame sufficient? The AtomicElementFlippedView.m file in TheElements has self.wikipediaButton.frame=buttonFrame;. Shouldn't I leave out self if I'm getting/setting a property of my ivar an...

UISplitViewController with three controller

Hi Friends, I am working with developing an iPad application. In that i have to display two table views and one web view in a single view. UISplitViewController allows to add two controller only. Please any one help me. ...

Matching an NSString with part of a text paragraph on a website. - iPhone SDK

Hello, So basically I'm working on an application, and one of the features is an anti-cracking feature. It checks the webpage for the UDID number of the device, and if it is there, it allows the application to run, if it's not there, it runs exit(0);. So far, this is what I have. This is in my AppDelegate.m - (BOOL)application:(UIAppli...

how do you prevent page scroll in textarea on mobile safari

I am trying to make a little note pad app for mobile safari for funzies but so far it doesn't seem to be working out. I want to prevent page scrolling so it doesn't have the rubberband and feel like a webapp but to do this I am using: document.ontouchmove = function(e){ alert("calling prevent default"); e.preventDefault(); } ...

iPhone UITableView shows one cached view in it's UITableCellView, the last one added!

I have an object that return a cached image view (UIImageView), which do the loading, showing the loading image, and then populate the view with the loaded image. In my case, the TableView shows multiple rows, where the same user photo might appears more than once, and I noticed that because it is cached, it shown in the last cell it is...

Classic CoreData error

Hello, I'm getting this classic error : The model used to open the store is incompatible with the one used to create the store This is how it's implemented : NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; NSManagedObject *newShot = [NSEntityDescription insertN...

Is it possible to log HTTP connections within an iPhone application?

I'd like to develop an application that can listen for unencrypted sensitive information (info similar to the data leading to a class action filed against Storm8) across one or more iPhone/iThouch applications. I've been unable to find any info on whether or not this would be possible. Is it possible to log HTTP (including get/post an...

Where store fetch array data?

I try [eventArray value] but nothing - i get like that 78999 3451237 3451237 But must be 90 NSEntityDescription *entity = [NSEntityDescription entityForName:@"Event" inManagedObjectContext:app.managedObjectContext]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:entity]; NSSortDescriptor *sortD...

iAd Test App is missing from the iPhone Simulator

I ran into a strange issue - iAd Tester app is no longer present in iPhone Simulator so I can't test iAds on it. I am using Xcode 3.2.4 with iOS 4.1 and iAd Framework 1.1.1. I tried re-installing the whole thing (Xcode and iAd package) and resetting the content of the simulator using command from the menu and manually deleting everythin...

Objective-C: Parse .m3u file to get .mp3

I'm trying to stream audio in .m3u and would like to get the .mp3 components of the file. How would I go about parsing the .m3u? Thanks in advance! ...

How to mark position of iPhone on Google Map?

I want to make a webpage with a Google Map that marks the geographical position of my iPhone, how do I go about this? I've looked into the Google Map API section on markers - so I can make a static marker, but I don't know how to pull the GPS data from my iPhone. ...

how to make a phonegap app load a url in page without opening it with safari

how is it possible using html/js to make an iphone native app build with phonegap or other html based app makers to load an url in a navigation controller without leaving the app. (sort of like the fb iphone app) ...

Will this Objective-C, nested NSArray cause a memory leak on iPhone?

NSArray *tLines = [[NSArray alloc] initWithObjects: [[NSArray alloc] initWithObjects:@"Matt", @"David", nil], [[NSArray alloc] initWithObjects:@"Bob", @"Ken", nil], nil]; self.lines = tLines; [tLines release]; I'm allocing NSArrays within an NSArray, will the nested arrays get released when I call ...

Setting Cell Text Color

Hello , Apparently this is deprecated : cell.textColor = [UIColor whiteColor]; Does anyone know what the best way to change the color of a Cell Text ? Edit after comment : I'm now using this : cell.textLabel.textColor = [UIColor whiteColor]; but the color is still not changing, see the IB parameters : ...

How to add a HUD? (iOS)

I am trying to have some controls appear when you push a button and have it disappear when you press a different button. Right now the HUD is comprised of an image view, and some custom buttons in a UIView called "credits". I've managed to have it disappear using: [credits removeFromSuperview]; How do I have it reappear? ...

how to use same UIView in tabs?

hi everybody, i have a small UIView, i fill it with some string data from net. i want to it load just once. thats why i call it in appdelegate class. CurrencyView *currView; @property (nonatomic, retain)CurrencyView *currView; in application didFinishLaunchingWithOptions: CurrencyView *view=[[CurrencyView alloc] initWithFrame:CGRect...

How to inject html into a webview?

Problem: I have a webview that is loading a page from Http://somerandomsite-here before the page is loaded I would like to add in the <head> block a reference to a .js that is in my bundle. How do I do that? ...

iPhone 4 Retina "apple-touch-startup-image" for Web-apps

This has been asked multiple times here, but without a solid and understandable answer. This is a web-app, not a native-app. I'm using: <link rel="apple-touch-startup-image" href="images/startup.png" /> to display the startup image. It loads fine if the image's resolution is 320x460. I tried using the retina's resolution which is 640...

Get low-level iPhone network info

I have two free apps, iSys and iSysMonitor, that report info about my iPhone. Interestingly, they disagree regarding the IP address of my cell connection. Also, neither lists the name of my WiFi connection though I can see it in the iPhone's Settings. I'd like to settle the IP argument and also learn how to get the name of my network con...

XCode code signing menu has gone wonky -- how to fix?

I have one project where the code-signing popup is all whacked-out. On a "normal" (i.e., every-other) project, the popup looks something like "Good menu" in this picture, but on one project, it looks like the "Not-good menu": The "Not-good menu" is from the project about which I'm asking. I tried quitting & relaunching XCode, but th...