Questions tagged [objective-c-2.0]

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

177 questions
0
votes
0 answers

Run a background timer in native iOS Module with Objective C - React Native

My app requires to run a timer in the background continuously when an app is in the background and it should stop when app gets into the foreground. The app is built with React Native and it doesn't have any proper module to run in the background…
Asbar Ali
  • 955
  • 1
  • 13
  • 26
0
votes
1 answer

CGRectMake on Objective C will not load properly

I have one web view and I am trying to load a dynamic page from my site in that code. myWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 768.0f, 1024.0f)]; but it does not load whole page. it starts page from 1/3 of the image…
Pruthvid
  • 683
  • 10
  • 19
0
votes
2 answers

How to add a 2nd view as a Tab Bar View (iPhone SDK)

So before I've managed to work with TabBarViewControllers and create an application using them. However every time I do so the view acts as my main view. This time around I want my TabBarView to be my second view in my application E.g First window…
MrShoot
  • 843
  • 1
  • 9
  • 21
0
votes
3 answers

so "lame" - how to have from float = 0.39824702 just float = 0.398?

..so only 3 digit numbers afer ".".. float a = 0.9876543 I would like to have 0.987 only in memory because of transmitting the number over bluetooth.. I'm using iphone SDK.. thank you... :)
vogue
  • 81
  • 1
  • 1
  • 3
0
votes
3 answers

Interface Builder issue (Build and go in xCode)

I really don't understand this. I downloaded the recent version of xCode 3.2.5 and Interface Builder 3.2.5. I follow these steps: Create: Window Based Application (iPhone) Double Click: MainWindow.xib -- Launches Interface Builder -- selects -> File…
0
votes
1 answer

Use of singleton class and sqlite

Im new to objective-c and I've been reading up on singleton classes. I want to implement it into my logic but im not sure if its correct/possible/doable to do so, any advise would be appreciated. At the moment i'm loading data from an xml feed, but…
david-l
  • 623
  • 1
  • 9
  • 20
0
votes
4 answers

Problem with core data lazy loading

Core Data loads objects lazily, and it is supposed to bring in any objects as soon as you try to reference them. However I have encountered a couple of problems with this scheme. Objective C 2.0 fast enumeration over the objects in a relationship…
CuriousKea
  • 348
  • 1
  • 7
0
votes
2 answers

Add message to Remote Push Notification in Objective C (iOS)

How to fetch and display the message in push notification from dynamic notification service push: { aps = { alert = "My First Notification"; sound = default; Msg = { myData = ( { …
0
votes
3 answers

How to send JSON with dictionary and array in iOS(Objective c )?

I am trying to send a JSON to websocket. the required format is coming up with commas whereas when i add item to dictionary then its creating a semi-colon. Required Format…
warzone_fz
  • 472
  • 1
  • 9
  • 24
0
votes
1 answer

Does @interface with properties only require @implementation?

I would like to define a C struct-like in my Objective-C header file which includes _ivars only, however, since this a header file only there would be no corresponding @implementation. Is that even possible? (I also don't want to force the header…
sramij
  • 4,775
  • 5
  • 33
  • 55
0
votes
1 answer

When an ObjectiveC class property is expected to be set?

This question is also asking what type of things I better pass as an argument to a class method vs. having as a property of a class? For example, if we have a method func which operates on name of the class, then I got two options here: @property…
sramij
  • 4,775
  • 5
  • 33
  • 55
0
votes
1 answer

How to sort the multiple arrays based on a single array in Iphone SDK

I'm having a table view.The table view cells are filled with 5 different columns with 5 different array.If i sort the array in one column all other column should reorder based on the sorting.How can i do that one.
Susee
  • 13
  • 3
0
votes
1 answer

How do I port StrongDelegate ObjC code to C# MonoTouch?

I'm porting the Official Apple Multipeer WiTap sample to Xamarin and C#, however I'm not sure how to port this method within TapViewController. It contains all the things I'm not sure how to port... namely A delegate that is expressed only in…
0
votes
1 answer

Core plot-Add OutOfRange to draw graph that changes dynamically with label "OL"

Currently I am working on already established application which uses Core plot and in specific its using ScatterPlot to draw a graph. This graph is drawn with values obtained from connected bluetooth device so the graph is dynamically drawn. XY…
0
votes
2 answers

Connect to a BLE device using MAC ios

I'm working on an application for iOS (Objective-C). I'm looking for a way to connect to a BLE device so that you can specify the MAC or UUID of this device. Currently I have two BLE devices with the same name so the app is not able to differentiate…