Hi,
I have three layers, the bottom layer is written in C++ and the other two middle and top layers are both in Objective-C.
The C++ layer stores a reference to a class in the middle layer, and the middle layer also stores a reference to a class in the top layer.
Upon receiving a request from the middle layer, the bottom layer is resp...
Hello all,
I am searching over this from last 2 days but still haven't find anything helpful for this.
I want to record audio in mp3 format using core audio. Right now i'm recording in LinearPCM caf format. Does someone knows how to record in mp3 format or an alternative is to convert caf to mp3.
Thanks
...
I have an app based on Apple's PageControl sample. The first time the view loads, the scroll view is loaded with page 0 and page 1. Whenever a scroll is initiated, the scrollViewDidScroll method should get called by UIKit correct?
When initiating a scroll from page 0 to page 1, the app should load page-1, page and page+1, (to prevent fl...
Hello,
I'm reading PDF file, and then releasing it:
CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), (CFStringRef)@"somepdf.pdf", NULL, NULL);
CGPDFDocumentRef pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
int pagesCount = CGPDFDocumentGetNumberOfPages(pdf);
CGPDFDocumentRelease(pdf);
But the memory is not...
Application :
It has 3 views Views A,B,C.
There is a Alert on View B with 2 buttons on it.
What I do is:
I go from View A to View B. On B, I click on the Alert button to take me back on View A.
Problem:
When i click on the button to again go to View B then it gives an error related to "isValid" property of timer. Timer is declar...
hi,
i have been working on a small demo and i wrote a function which accepts two string object and looks like this
-(void)adding:(NSString*)num1 :(NSString*)num2
{
num1 = first.text; //first is object of label
num2 = second.text; //second is object of label
int x= [num1 integerValue];
int y = [num2 integerValue];
i...
locationServicesEnabled changed from a property to a method.
This is deprecated:
CLLocationManager *manager = [[CLLocationManager alloc] init];
if (manager.locationServicesEnabled == NO) {
// ...
}
Now I should use:
if (![CLLocationManager locationServicesEnabled]) {
// ...
}
I want to support iOS 3 and iOS 4 devices. How...
How to Call drawRect when i click on button in objective c ?
I want to call drawrect method of a view in my UItabbarcontroller. How i can do this ? Thanks in advance..
...
Hi,
I am trying to use the tab bar controller in order to have a home view load with the tabbar items at the bottom but does not create a tab bar item for the home view. I managed to create views, display the tab bar on these views and create a respective tabbar item but I do not know how to NOT create the tabbar item.
thanks - hope thi...
I have searched all over Apples website and the internet as well as Stackoverflow. Does anyone have any sample code or a tutorial of how I can record audio from the built in mic, and then export that audio via email? Please, I really need it for my app. Could someone email me sample code to henryfbemail(at)gmail.com Thanks a million!
I ...
I would like to accomplish something like what is being done in this post: http://stackoverflow.com/q/538996/252428
however, i would like to construct an NSDictionary.
if i do something like:
constants.h
extern NSArray *const mFooKeys;
extern NSArray *const mFooObjects;
extern NSDictionary *const mFooDictionary;
constants.m
NSAr...
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...
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";
...
Hi all, I have a window based iPhone application with multiple tabs and a navigation bar controller which appears on all these tabs. It's a weather/climate app, so I want the user to first choose a city, then be presented with weather info in each tab for that city (they can go back to the city select from any tab using the navigation ba...
I've got an iPad app with a UITableView that has roughly 100 rows. The cells are custom, I've implemented heightForRowAtIndexPath to tell the UITableView how big my cells are.
I'm using this:
[tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
to scroll the tabl...
Is it possible to detect the touches in a scrollview which is filled with a grid of buttons as in the image below?
For example, in this image, i can only drag the scroll view by dragging on the red areas, but i would like to be able to scroll the scrollview no matter where it is touched (like the iPhone's home screen)?
Thanks
...
I'm trying to get the actual position on the iPhone Simulator. But I always get the cached result. My question is related to this and this question. I'm using the code from the LocateMe example:
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)ol...
Is there an objective-c git library that would support pushing to/pulling from a remote repository? I'm familiar with objective-git, but if I'm reading it correctly, it is for interaction with a local repository.
Ideally, the library would work on iOS and Mac OS X, and would be permissible for inclusion in app store apps.
...
Two month ago I started to write a new iPhone Application and for this reason I created a generic RESTFul web service, which allows me have a lot of these necessary features like user authentication, user profiles, a friendship system, media processing, a messaging system and so on. In my mind there are several use cases to reuse this we...
Good Morning,
I've created a Status Bar Application for Mac: when I click on the icon in menu bar, a NSCustomView appears with some elements.
My NSCustomView is too simple, so I want to create something like this: (Snippet.app)
http://i.imgur.com/aweP7.png
I've searched in Apple Documentation, but I didn't find nothing usefull.
Maybe...