iphone

fastest way to draw a screen buffer on the iphone

I have a "software renderer" that I am porting from PC to the iPhone. what is the fastest way to manually update the screen with a buffer of pixels on the iphone? for instance in windows the fastest function I have found is SetDIBitsToDevice. I don't know much about the iphone, or the libraries, and there seem to be so many layers and...

POST data not being received from iPhone

I've got an iPhone App that is supposed to send POST data to my server to register the device in a MySQL database so we can send notifications etc... to it. It sends it's unique identifier, device name, token, and a few other small things like passwords and usernames as a POST request to our server. The problem is that sometimes the serv...

Pinch zoom without UIScrollView based control

Is there an "accepted" way of performing (pinch) zoom on a view that is not based on UIScrollView? ...

Transparent background in grouped UITableView - iPhone

Hello. I want to make the grouped UITableView transparent. I partially succeded with the following code: UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0.0]; historyTable.backgroundColor = bgColor; Unfortunately, black corners appeared in the rounded cells. How to get rid of them? ...

iPhone: How to Share/Move Files from App Directories to Other Devices

Hello everyone I have an app which generates some files in the app directories I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client or some similar method. Can the iPhone act as a http server and ftp server by itself or do I need to do some programing to...

How to create a label on UIVIewController Dynamically in iphone?

Hi, I m working on one project in which I have to select the user from UITableViewController and then that user name will be added to my UIViewController on UILabel on conditional bases that is 1) first time UIVIewcontroller is clean without any label then viewDidload of UIViewController will create a label on screen with that name s...

Which of the view lifecycle methods should I do performFetch for Core Data?

Hi, my app shows a map with annotations fetched from core data. Currently I do performFetch in viewDidLoad for the map, however, this is delaying the map from appearing immediately on the screen when I select its tab in my tabViewController. Is there a more appropriate place to call performFetch or is there something else I'm doing wro...

Conversion from Iphone Core Surface RGB Frame into ffmepg AVFarme

Hello, I am trying to convert Core Surface RGB frame buffer(Iphone) to ffmpeg Avfarme to encode into a movie file. But I am not getting the correct video output (video showing colors dazzling not the correct picture) I guess there is something wrong with converting from core surface frame buffer into AVFrame. Here is my code : Surfac...

What is the name of iPhone Calendar table ?

Hi , i want to know what is the iphone calendar table ? and how could implement it . and i need some information about these questions : does it way change the data of calendar ? and creat for example persian calendar ? how could import events to the table ? ...

How to get rid of previous reflection when reflecting a UIImageView (with changing pictures)?

Hi everyone, I have managed to use the reflection sample app from apple to create a reflection from a UIImageView. But the problem is that when I change the picture inside the UIImageView, the reflection from the previous displayed picture remains on the screen. The new reflection on the next picture then overlaps the previous reflecti...

UIColor Function Crashes

Okay, so I have a UITableView that I want to apply themes to. I think I've figured out how to do it. What I do is when my view loads, I call a function called "[self getValues]". Here is how it looks: - (void)getValues { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *theme = [defaults valueForKey:@"...

Storing Data help, cannot be placed into TableView.

I have encountered a problem of placing data into the Table View. Here is my current code. I am unable to load the results from the class I tried to use NSFetchedResultsController, but it won't work. Can any one see the mistake. This is the header file. #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> #import <sqlite3.h> #import "...

Using the contents of an array to set individual pixels in a Quartz bitmap context

I have an array that contains the RGB colour values for each pixel in a 320 x 180 display. I would like to be able to set individual pixel values in the a bitmap context of the same size offscreen then display the bitmap context in a view. It appears that I have to create 1x1 rects and either put a stroke on them or a line of length 1 ...

calling function problem (iphone)

From class picViewController i am calling function imageCliked on scrollViewController in order to fire function loadPage but it does work. Compiler error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[scrollViewController loadpage:]: unrecognized selector sent to class 0x17198'" Anybody can ...

How to figure out the font size of an UILabel when -adjustsFontSizeToFitWidth is set to YES?

When myLabel.adjustsFontSizeToFitWidth = YES, UILabel will adjust the font size automatically in case the text is too long for the label. For example, if my label is just 100px width, and my text is too long to fit with the current font size, it will shrink down the font size until the text fits into the label. I need to get the actual ...

How can we listen for UIKitApplication notices?

I'm trying to get my app to see and respond to event notices like the following: Sun Mar 7 00:29:31 unknown UIKitApplication:com.yourcompany.blah[0xac61][594] <Notice>: Connected to 10.0.1.8:55937! Sun Mar 7 00:29:31 unknown UIKitApplication:com.yourcompany.blah[0xac61][594] <Notice>: Connection request from 10.0.1.8:55938... Sun Mar ...

Iphone app is delayed for 10 -15 minutes when iphone is in sleep mode.

Hello Experts! I have created an app that uses NSTimer, which gets triggered each second. My problem is that if the Iphone is in sleep mode i get a delay for 10 to 15 minutes before the event is triggered. I have stackoverflowed and googled this and the reason for this seems to be that the phone stops listening for certain events when...

How to add a UINavigationController to my UITableViewControllerSubclass?

My app is a tab bar application, which one of the tabs is a TableViewController instead of a viewController which works fine (the table displays great) but where and how do I add UINavigationController to it? :-) ...

iPhone Zoom Transition between 2 UIViews

I have a small floating UIView, viewHover, which acts as a container to 2 views "viewHot and viewCold" I which to transition between viewHot and viewCold with a zoom in then disolve transition I have seen a few times. Is this possible? ...

change files to secret file/folder

Hello everyone I hope to copy some files to a folder This folder needs a password to lock, if user want to view the file list or open them, they need to use the password to unlock. Is it possible? Welcome any comment Thanks interdev ...