iphone

webservice to transfer file from iPhone to backend

how to write a webservice , that would read the log file from my iPhone application and move it to the server ...

iPhone Smooth Transition from One Video To Another

I have to figure out the best way to transition from one video to the next BASIC IDEA: An example would be that there is a video of a person walking.....the user taps the video and a seamless transition occurs to a video of a person running (over simplified example) My first thought was to create 2 movie players and use transitions bet...

how to set a background image to label

i want to display a number on image like badge of size 30*28 ,which is placed upon button image, i have an badge image to set up on the top of button image.. on top of badge image i should able to display text or number and my badge size is 30*28... so ,for this to achieve i want to set a label on top of my button image and so i want t...

iOS Sync & Backup

Given a jailbroken iPhone and iPad, various windows machines, and a possible shared web host environment, how would I setup the iphone/iPad to automatically sync a folder of files, such that modifying the files or adding on the iPad would result in them being updated/added on the iphone within the file system ( assuming wifi/internet con...

Which is easier to learn? iPhone development or mac desktop development?

I'd like to start creating a few apps for the mac and iPhone for personal interest, but I'm not sure which is the better place to start. Both seem to have a fair bit in common: objective-c, cocoa, xcode, etc. so I would assume that there are a lot of transferable skills. My question is: which is the easier starting point? Creating a sm...

running an NSTimer in the background of a multitasking iPhone app to turn location service on/off

hey guys i am attempting to make an app that records an accurate location every 10 minutes. the problem with this is that when running is best mode, the battery drains really quickly. i would like a timer to turn of the location service, have didUpdateToLocation get a good location, turn of location service and then wait for the timer...

UITableView with side section header images

The music app on the iPad has quite a lot of interesting custom UI features, one of which is the table view displayed when looking at the albums of a particular artist. It has images along the side of each section, almost acting in a very similar fashion to section header views. If I scroll down, the top image stays there until the next...

Advice on how to get an iphone app approved

Hi All, Im just wrapping up my first iphone app and getting it ready to send away to apple to be approved for the App store. Im just wondering if anyone can give me tips on what they really look at and what I should do before i send it to them for approval. Thanks ...

Mixing OpenGL and UIKit

Hi! My current iPhone app uses UIKit. Now I want some small effects in the app, for example a text looking like it's blowing up. My idea is to use OpenGL for these effects. Is it a good idea to mix UIKit and OpenGL like this or should I avoid it? I have read some posts saying it's not a good idea and other saying it works just fine. Wha...

iphone-sdk: Adding a textfield to UIAlertview does not work in iOS 4??

hi, i am trying to add uitextfield to my alterview. When the user tries to enter text the alterview is supposed to shift up a little bit so the keyboard does not overlap and when pressing the done key the keyboard is supposed to disappear and the alertview should shift back. It all works fine when run it in ios 3.1.2 (and also in 3.2) bu...

Passing a nil object to a function

Hey guys, I was wondering if objective C does any check to see if a pointer to an object is nil before calling the function. For example, say I have a myObject* ptr; and initialize ptr = nil; and call [self myFunction:ptr]; where myFunction is my own function and does no check to see if the object is nil. I heard somewhere th...

SQLite to NSMutableArray object

Hello all, I'm new to Objectiv-C and i try to get my database SQLite to work, but i get sommene trobble i hobe i can get sommen help here. That i will have my code to doe its bind all "region_title" to tableview, and "region_id" to the id like "html" when you use "options" i have try to search about it but i can't find help to my prob...

iPhone Dev, UITableView Background Color

I am having a problem with the background color of my table view. In Interface Builder, I have the background color set, and it shows correctly there. When I run my application, however, there is no background color there (it is the default white). I have discovered that I can set the background color in the table view delegate file: ...

Augmented Reality via (common) Web Cam / iPhone / Android - Grid Detection? - Harry Potter 3D Example

I'm trying to figure out how to implement a basic augmented reality application that uses a piece of (real) paper to navigate (simple rotate, zoom) a virtual 3d or pseudo-3d space. The example implementation that comes to mind is the Harry Potter 3D Augmented Reality ad, where you can take a piece of paper, point it at your webcam (at ...

How can I programmatically force-stop scrolling in a UIScrollView?

Note: The answer given here doesn't work for me. I have a UIScrollView (not a table view, just a custom thing), and when the user takes certain actions, I want to kill any scrolling (dragging or deceleration) inside the view. I've tried doing e.g. this: [scrollView scrollRectToVisible:CGRectInset([scrollView bounds], 10, 10) animated:N...

iphone ==> UIAlertView change background???

I am trying to change the background of the uialertview. Everything works fine except the background image i am adding to the uialert view won't scale inside the alertview. So basically you see only part of my background image based on the current size. Is there any way to make it so that the image scales inside the alerview until it fit...

Problem adding a UIView created from a NIB to the window and offsetting to compensate for the menu bar

I have noticed that when you create a new xcode project as a view based application it creates a view NIB and when that NIB is loaded it loads below the menu bar. I am trying to create a window based application and programmatically add a view to the window, but the view gets loaded underneath the menu bar so part of the view is being o...

convert instance variable into string?

Hi, if I have a uiviewcontroller with a instance variable "direction". I can do MyViewController.direction but if I don't want the value but a string with the variable name, so I want @"direction". Is it possible? thanks, alex ...

Security flaws to Apple iPad and iPhone via PDFs?

Do any SO users know anything about these security flaws that have emerged from the German government of all people? http://www.guardian.co.uk/technology/2010/aug/05/apple-security-weakness-ipad-iphone Is it possible to understand what sort of vulnerabilities this type of hack could have (e.g. on debit/credit cards?) ...

How to release a variable that is about to be returned?

I stumbled into a problem when I hit the "build and analyze" button on the Build menu in my Xcode. The analysis suggest me to release a variable that I wish later on to be returned. The code is like following: - (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotation{ //I do some other th...