Hello,
I have a csv file that is comma delimited. I have no problem with the importing aspect of it except for when the import reaches a line like this:
1,2,3, Canada's,5, 6,7
The import crashes when it reaches the single quote. Does anyone know of a program I could use to import my csv file in to sqlite database without having to get...
I need to know how to extract everyname & number from the address book in xcode for the iphone. I need to have the name and number in the following format:
John Doe:000000000000000 Jane Doe:000000000000000
...
I am trying to replicate the functionality that users see when they go into edit mode for a contact for which they have already selected a photo, and then click that contact's photo. An action sheet slides up, with options including "Take Photo", "Choose Photo", and "Edit Photo". When you select "Edit Photo", a view comes up that shows...
Method swizzling works great for instance methods. Now, I need to swizzle a class method. Any idea how to do it?
Tried this but it doesn't work:
void SwizzleClassMethod(Class c, SEL orig, SEL new) {
Method origMethod = class_getClassMethod(c, orig);
Method newMethod = class_getClassMethod(c, new);
if(class_addMethod(c, orig, method_g...
Hi,
I am developing an app which highlights/selects a word when user holds tap on the word and translates selected word. It is working perfectly with HTML pages. However, my app also supports pdf documents. The problem is that text doesn't get selected when viewing PDF's, instead the zoom magnifier is shown.
By the way, I am using "Jav...
I'm subclassing UITableViewCell and using Quartz 2D to draw the elements of the cells in the drawContent view method. In my table view delegate's tableView:cellForRowAtIndexPath, I'm also inserting a UIImageView as a subview to the cell, but the image doesn't appear until the cell is selected. I'm suspicious of the backgroundView and s...
Working on my new app called Covered, and I noticed a problem. I'm using it like this:
query = [[MPMediaQuery albumsQuery] retain]; [query setGroupingType:MPMediaGroupingAlbum];
Very simple thing, but after logging and seeing the results I noticed that it hides/skips all albums which don't have names. Is there a way to fix this? Has an...
I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash.
Is there some way to simu...
I am working on an app for the iphone 4.0. The app was originally on the 2.2.1. I upgraded it to a universal app, but now it seems to be multitasking. When I press the menu button while running the app, instead of exiting it closes but when I relaunched the app it resumes where I left off. I am assuming this is multitasking? I want it to...
I am looking to implement a "world High Scores" for a game I wrote. I have several games already installed on my phone and was wondering how developers are creating those fancy looking "High Score" table views?
I have seen some very cool ones...some showing the scores within a view that pops up from the bottom, showing half way and t...
So I am working on an app that was compiled on sdk 3.2 and 2.2.1, but I have sdk 4.0. When I compile it, I get many build errors "Pattern colors not supported by the iphone SDK for iphone OS versions prior to 3.0" and "setText is deprecated."
Furthermore, when I open a nib file and try to change the colors, add in an item from the libr...
I have an iPod touch and iPad with gcc installed on them. However, everytime I try to compile my programs they always fail. I am trying to write c programs for the terminal, not GUI. I am missing the standard c/c++ libraries (stdio.h, etc.). Can anyone tell me where I can find these libraries?
...
before I upgraded to latest iphone sdk I was able to mouse over variables in the debugger and see their values. Nothing happens now when I mouse over the var. I've tried using "po" statements in the debugger console but i only get a message "No symbol 'myobj' in current context". Is there some debugger setting that I have inadvertentl...
In my code, i have this line;
[self.navigationItem.backBarButtonItem setTitle:@"back"];
but this doesn't change the title of the back button in uinavigationcontroller when the new controller is pushed.
So how to change the title of the back button?
...
Hello all,
i am using audiotoolbox to stream music from a URL on an iphone app.
what i want is to enable multitasking using this framework. is their a special way of doing this or which method can i use to make this work. thanks.
...
This is a basic question, but I realized that both of these bars have different rendering process. Why is that?
If I use an image specifically designed for UIToolbar items, and try to use it on UINavigationBar items, it doesn't render in the same way. It seems to be not rendered at all in the UINavigationBar.
So, I have to create a dif...
The only method for getting a volume change on currently playing AVPlayer items is to follow this process;
Offload the currently playing AVPlayerItem's asset
Grab the current playback time for that AVPlayerItem
Load the asset into a new AVPlayerItem
Replace the current AVPlayerItem with the new one
Wait for the currentItem to change on...
So I've upgraded the code to the ipad (i.e. converted to a universal app). However, the UIAlertview rendering seems to be off for IOS4. Instead of being positioned in the middle, it jumps up and is displayed on top, with half the box cut off. Same goes for landscape orientation.
It is my understanding that the UIalertview is always set...
Hi,
I have a graphic that is 3 times the width of an iphone landscape view.
I am trying to auto scroll it so that it appears that it is moving sideways, without using the touchscreen scrolling method.
My aim is to maybe have a button you can press and it moves it left or right across the screen like an animation.
I can deal with everythi...
Hi,
I try to inherit from MKPinAnnotationView to display additional information on the callout,
but unfortunately when I use this class, pins seems overlapping each over whereas it display in the good order when I use original MKPinAnnotationView.
You can see how it display below after.
with my custom subclass of MKPinAnnotationView ...