iphone

how to send the event to the clone without using jquery on iphone .

this is the code: $("#draggable").draggable({ helper: 'clone' }); use this code , if you drag the div , you will drag the clone , this is my code without using jquery and jquery-ui,i want to drag the clone-one when i drag the div: var $=function(str){ var div=document.createElement('div') div.innerHTML=str; return di...

iOS Legacy Support, is it worthwhile?

I need to add a method to an app I am writing that only works on iOS 4 (and above), there is a way I can do it that works on anything above iOS 2 but Apple says that the use of this older method is discouraged in iPhone OS 4.0 and later. My question is if I go with the newer iOS 4 method will I be severely limiting the user base of the a...

NSCoding and integer arrays

How do you use NSCoding to code (and decode) an array of of ten values of primitive type int? Encode each integer individually (in a for-loop). But what if my array held one million integers? Is there a more satisfying alternative to using a for-loop here? Edit (after first answer): And decode? (@Justin: I'll then tick your answer.) ...

problem to post large amount of data to the web server in iphone

hi iam working in simple application in which i need to post data to the server using webservices but ipost string data to the web server but it give an error" large amount of binary data will be truncated " my code for above sending is below NSString *queryString = [NSString stringWithFormat:@"url/message=%@",strMessage]; querySt...

Converting a sample rate of audio file iPhone

I'd like to change the pitch of an audio file by changing the sample rate programmatically. I am recording the file using AVAudioRecorder. I have noticed a settings parameter within AVAudioPlayer, however, it is read only. Can anyone lend a helping hand? :) ...

Error : Duplicate symbol ...

I declare "int x" in view A and in view B but occur below error Why? Duplicate symbol -X in... ...

Problems running application compiled with XCode 3.2.4 and iOS SDK 4.1 on iOS 3.x

Hi, I recently ran into troubles building an app with latest iOS 4.1 SDK and running it on device with iOS 3.x. App works OK on 4.x devices and iPad, but crashes on devices running older 3.x iOS. Problem appears to be in linker, since crashes are obviously caused by calls to 3rd party libraries used in the project. The linker (or even ...

How to change frame size of the UIView in NSThread

How to change frame size of the UIView in NSThread ? Can anyone help me ? Thanks in advance........... ...

Testing iPhone apps effectively with release builds

We have an app that has crashed on armv6 iOS devices coming from the App Store. armv7 iOS devices ran it just fine. When the app was built and tested as debug, it ran just fine on both armv6 and armv7. In the logs, I was getting EXC_BAD_INSTRUCTION when it tried to construct an object from a library. The crash appeared to be a linking er...

Persisting NSMUtablearray which is property of Core Data Entity

@interface Week : NSManagedObject { } @property (nonatomic, retain) NSNumber *weekID; @property (nonatomic, retain) NSString *top; @property (nonatomic, retain) NSString *summary1; @property (nonatomic, retain) NSMutableArray *book; @end I'm reading XML file from server and putting vales in above entity.Since Books to be read for th...

custom iPhone backspace and enter buttons.

Hi dear ,i have problem with the custom backspace and enter buttons on custom iPhone keyboard , The Backspace : my codes just remove characters at the end of the line not from the cursor location . if ([textView.text length]>0) textView.text = [textView.text substringToIndex:([textView.text length]-1)]; and read this question http:...

How to check and let a user "Like" a page programmatically from iphone application ?

I am trying to integrate iphone application with facebook, and I am stuck at a point where I need to let a user "Like" a page. This is because it's only after Liking the page the user gets to write some comments which will ultimately appear on the page's wall. I am not able to find any appropriate objective C code to implement this funct...

Tile fade problem with CATiledLayer

I'm using an UIScrollView with CATiledLayer, with the default fadeDuration (no override). When the tiled layer gets refreshed, apparently for some reason the last tile never fades in completely. I can actually see the tile with about 0.1 of transparency on the screen. As soon as I scroll the scroll view even a little bit, the tile "refre...

Loading an ico image switches red channel with the blue one

Hello, This is what I do: I have a favicon.ico in my resources (for example http://google.com/favicon.ico) Then I have a UIImageView which loads that image. self.imgTestIcon.image = [UIImage imageNamed:@"favicon.ico"]; The image showed in the simulator or the in iPhone is the same but with the red color switched with the blue one. C...

UITableViewController - call SAME init of class on didSelectRowAtIndexPath...

Hi there basically, I'm stuck ha. I have a page where a video gets downloaded. It has a UIProgressView bar in it. When the user selects a row in the table view it calls VideoPage *page = [[VideoPage alloc] initWithVideoId:[indexPath row]] and then pushes that view controller onto the view stack. This page then starts the download, and ...

How can i handle a timeout in this Google-Maps-Request ?

In the following Code i think i have a problem with timeouts, if the connection is slow. The application works with 3G and without net, but on GPRS it quits sometimes without a message in the log. I think, it maybe in this part of code. So, is there a way to handle those timeouts ? Or have i done some stupid mistake, i havent figured ou...

Core Data - GROUP BY

I am trying to group results returned by Core Data. I read that you need to use "SortDescriptors" with a selector but I cant seem to get it to work? I am trying to return group'ed "unique" name values? http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/SortDescriptors/Concepts/Creating.html Thanks James ...

how to replace space by % in objective c :Iphone

Hi all. I am getting value in search box from user and storing it in NSstring *searchWord; I want that when user typed let say "Lady Gaga" then I Replace the space with % just like that searchWord=searchbar.text; now search word has "lady gaga" I want to replace it with. searchword=@"lady%gaga"; ...

iPhone app crash on 4.0

All crash reports submitted for our application on iOS 4.0 are giving the below information: Application Specific Information: [3532] was suspended with locked system files: /private/var/mobile/Library/AddressBook/AddressBook.sqlitedb Any idea what this indicates and what could be the possible cause of crash. Our application is not int...

UIWebview Localization

On a localized Iphone (Language set to Hebrew) when we view a webpage using safari and tap on an input field we get the keyboard up with the "Next/Previous/Done" buttons in Hebrew. When we view the same webpage using a UIWebview embedded inside our application the "Next/Previous/Done" buttons are always in English. We were thinking th...