iphone

Custon UISlider with non rectangular area

Hello, I would like to customize my UISlider like this screenshot : I'm using setMinimumTrackImage and setMaximumTrackImage method with a non strechable image but it doesn't work. The image is stretched and proportion are kept. Any idea ? Thanks. Thierry ...

iphone application..

How can I create a registration form on Iphone so that if I submit the form the data must be store on my database which is on my webserver? ...

[objc_getClass("PLCameraController") sharedInstance] always returns nil in iPhone

I am trying to apply Mike Chen's answer here, using SDK 3.0. In delegate.m file I implement; [viewController.view addSubview:[[objc_getClass("PLCameraController") sharedInstance] previewView]]; and in viewcontroller.m I implement: PLCameraController *cam = [objc_getClass("PLCameraController") sharedInstance]; CapturedImage = [cam _cr...

objective-c: initialize variable to nil

Hi, Does anyone know if the following code could be problematic: NSString *addchar = nil; if (case1) addChar = [[firstname substringToIndex:1] capitalizedString]; else addChar = [[fullname substringToIndex:1] capitalizedString]; Assume that firstname and fullname aren't null or empty. Does initializing the NSString object and setting...

TouchJSON and SOAP

How can i make a SOAP call using TouchJson? it just work fine with REST call. ...

Dealing with something as view loaded

I need a function,dealing with something as UIView display on the screen automatically, I think the way to implement it is overwr "- (void)didMoveToSuperview" or "- (void)didMoveToSuperview", am I right? I also want to know more solutions about that. Really thanks for your help. ...

netstat FIN_WAIT1 over 3G

Our company has a mobile app with clients connecting via sockets through AT&T's 3G towers in San Francisco. Lately I've been noticing some sockets never close - FIN_WAIT1 and TIME_WAIT is common. I've even seen sockets open > 24 hours. And of course the client's are not actually in the app as we've not received updates from them. Is...

Mobile Safari-style back button for UIWebView?

I haven't been able to find any sort UIBarButtonSystemItem representing tha "Back" button in Mobile Safari. I want my UIWebView's controls to look just like the ones in Mobile Safari so it makes sense. Would the best solution be to just screenshot UIBarButtonSystemItemPlay (same image as the Forward button) and flip it? Thanks. ...

Run script during Clean / Clean All in Xcode

I have a fairly complex (iPhone SDK) Xcode project, with many targets -- 4 static libs, unit tests, multiple sample apps, a BuildAll that runs a shell script, and a Package that runs another shell script. The "BuildAll" target creates a directory in the project with some subdirectories with contents ready for distribution. When I click ...

How to fade images using javascript?

Need a webpage which displays an image for x number of seconds and then fades into another image which also contains a clickable link. How do I achieve this with javascript? I know this can be done in Flash but it needs to be iPhone compatible. ...

How to manually read from iPhone preferences?

I just wrote a few values to my user preferences using NSUserDefaults. Is there a way I can go in and examine the persisted preferences file manually (when running on the simulator) to make sure they were written properly? ...

iPhone autofill passwords

I can't get my iPhone to remember my username and password for the login to my website. The controls I currently have are: <input type="text" name="username" id="username" /> <input type="password" name="password" id="password" /> <select> <option value="1">option1</option> <option value="2">option2</option> </select <input type...

iPhone Parse Local XML File

I have an iPhone app that does XML parsing from a URL. I have a sample.xml file in my Resources directory (in XCode) that I'd like to use for testing. How do I reference this file in code? I've tried @"sample.xml" as the URL and it doesn't appear to be able to find it. ...

How to tell if a subview was tapped twice

I have a UIImageView that I allocated inside of a UIView. I want to double tap that subview using the TOUCHESENDED or TOUCHESBEGAN and send a callback or at least a log. I would appreciate anyone who can upload some code. ...

how to programmatically access iphone browser history

hi experts, is it any way to access the iphone's browser history(safari) programatically thanks ...

Using MFMailComposeViewController

Im using the MFMailComposeViewController to send mail from within an application. I have added the code from the Apple example to a UITableViewController, and all works as expected when I trigger the modalViewController from a UIToolBarButton. The problem comes when I put a UIActionSheet between the UIToolBarButton and the MFMailComposeV...

Fixing delays in orientation updates

We have an iPhone app that is doing a lot of rotation between portrait and landscape. Everything is mostly working properly, but it doesn't seem to pick up orientation changes quickly enough (and some times not at all). Is there a way of telling the default rotation handling that we need updates faster? I'd rather not write custom acc...

Does -[NSCalendar ordinalityOfUnit:inUnit:forDate:] not work?

I have the following code in my program: NSUInteger currentMinuteOrdinal = [[NSCalendar currentCalendar] ordinalityOfUnit:NSMinuteCalendarUnit inUnit:NSEraCalendarUnit forDate:[NSDate date]]; NSUInteger passedInMinuteOrdinal = [[NSCalendar currentCalendar] ordinalityOfUnit:NSMinuteCalendarUnit inUnit:NSEraCalendarUnit forDate:passedInDa...

UIImageView slows down app (in a news application)

I have a news application that gets the content from a xml stream- to every news entry belongs a picture.. which one i display in a table cell.. it loads all the content, but it looks like the image in the cells slows the whole scrolling down .. any advice?? thanks in advance swisschris ...

iPhone combine audio files...

I have been searching for the answer and have not been able to find it -- obviously ;) Here is what I have -- I have a list of words. Each word is saved as a wav file on the iPhone. In my app, the user will pick words and I would like to put the words together to make a sentence. I have not been able to determine how to combine mul...