iphone

Pre-load image in inactive UITabBarController

I have a UITabBarController that holds serveral tabs of which one tab (third Tab, inactive at startup) contains a very large image. Since I want to allow quick reaction time once the app is running, I want to load the image during App startup. How can I "pre-load" this third tab when the app is started without displaying it? I though...

Map UIWebView tap to HTML element

How would I go about detecting which HTML element was tapped inside a UIWebView? It seems a bit hacky, but right now the only way I can think of would be to evaluate JavaScript and use JS to traverse the DOM. Any help with this direction would be appreciated, too. ...

When the user has two fingers on the screen and lifts one I want nothing to happen.

enough is enough. like the title says, I'm in a bit of a pickle. so here's the outline of my problem. I have this ship right. It rests in the center bottom of the screen (240,0). When the user touches to the right at a point greater than 240 the ship moves right. And left if the user touches at a point less than 240. HOWEVER this is gr...

Implementing chatting view in iPhone application

I want to implement the chat functionality in my application. So I want to know how to implement that scrolling part which contains chat messages in chat view of application. I have seen that kind of chat view in many application like facebook and others. I am wondered what that exact scrolling component is which allows us to programatic...

play video on a web view

Hello, I have opened a url on webview. This url shows a list of videos. when i click on a link. Video does not play. I have added MediaPlayer framework also and imported that class but its not working. How video can be played? Can anyone please tell. thanks in advance, John ...

Calling popToRootViewControllerAnimated after dismissModalViewControllerAnimated

Hi friends, I am working application in which i calling presentModalViewController and once finished(calling dismissModalViewControllerAnimated:YES) it should immediately call popToRootViewControllerAnimated. But the issue is dismissModalViewControllerAnimated:YES is working properly but popToRootViewControllerAnimated is not working a...

NSData dataWithBytesNoCopy from NSInputStream

I'm working on transcoding image data from a file to a base64 encoded string and then back to bytes as the file is read using NSStream. I think I'm almost there, but I keep running into EXC_BAD_ACCESS at various points during the conversion. I'm fairly new to the world of NSStream and buffers so feel free to let me know if I'm taking th...

What exactly is an Target in Xcode?

I was always wondering what's up with those Targets? What is it all about? What's the point of that? I never had to fiddle around with them, but obviously I can. Why should I want that, and what can I do with them? What's their purpose? ...

How to set up an SCM in Xcode?

I know Xcode can be hooked up to an SCM. But how would I set this up from scratch? How to check out / commit files into that, after setting it up? ...

AVCapture Session

Hello All, I was wondering if anyone anywhere had an example of an AVCapture session using AVCaptureVideoDataOutput working -- I am using the default CMSampleBuffer from the AVFoundation data output callback method - but when I save it to camera roll it is all black except the last 5 frames which I have to manually scrub to :S any help...

Picker row defaulting to next-to-the-last

I have a standard picker (copied out of the docs) with 6 rows. The row count is correctly logged as 6. When I try to select the last row: [delpicker selectRow:5 inComponent:0 animated:NO]; it selects the 4th row instead. But when I try to: [delpicker selectRow:4 inComponent:0 animated:NO]; it selects the correct, 4th, row...

Repeating end of the month events on iPhone Calendar, problem for February

This is more of an usability problem/bug/question. I wanted to add an event to occur on the end of the month for every month. But if I choose October 31 and set Repeat Event -> Every Month, all months ending in 30 are left out (including 28-feb). So, I could solve this by putting the end of the month at 30, and only miss out on February...

Right way/Best way to handle "CoreData could not fulfill a fault for" exception

Hi, I have a core data issue where some data is deleted somehow and my iPhone app will always crash on startup. I need a way to remove those data completely when this "CoreData could not fulfill a fault for" exception is detected. Any advice or sample code on how to do this? Is there a best practice or a right way to handle this excep...

How to use AVAudioplayer plyer impementation without leak

hi made application in which i used avaudioplayer for playing background sound. but i get leak in my project when first time sounds come. can any one guide me how to implement avaudioplayer without leak. ...

Can I access missed calls from my iPhone app

I want to access the log of missed calls in my iPhone app. How can I do this? ...

how to get the originalEvent without jquery on iphone .

for some reason, i can't use jquey , this is my code : document.addEventListener("touchstart", function(e) { e.preventDefault(); var orig = e.originalEvent; var x = orig.changedTouches[0].pageX; var y = orig.changedTouches[0].pageY; //id("#draggable").css({top: y, l...

Storing longLong value using CoreData in iPhone SDK

Hi! I am trying to store a long long value using CoreData. A value like 119143881477165. I am storing the value in NSNumber which is created using the convenience method numberWithUnsignedLongLong. The coredata metadata has the type for this field is set to int64. The number gets stored properly, however when I retrieve this number usin...

Mobile Substrate example needed.

Hello to all Mobile Substrate plugin Devs/Masters, I'm doing R&D in mobile substrate plugin development. I've an application with a UITableView with 50 records. And more impartant, it is NON EDITABLE. Now I wanna implement (is it hard?) a Mobile Substrate Addon for it, which makes my table is editable. I already tried to add functions ...

Open maps iphone app from my app, with pin drop at the coordinate

Hi, I'm using http://maps.google.com.au/?ll=, to open maps iPhone app from my app, but it only show the coordinate without the pin drop automatically. How can i make the pin to drop automatically? ...

identify internet connection type

my question is -- how to check various types of internet connections available for device.... i mean if i want my application send an internet request only if wi-fi is available...and not in other cases like gprs ,WAP,3g..etc.... please also give information about checking speed of a particular connection... please correct me if i am ...